SSH (Secure SHell) is a protocol for running commands on a remote computer.

learn more… | top users | synonyms

1
vote
1answer
58 views

CentOS 7 setting default port

I've been doing some maintenance on a CentOS 7 server and I noticed that it wasn't using the default ssh port (22). I changed it back to it's Port 22 in the sshd_config which works but when I try to ...
1
vote
1answer
77 views

OpenVPN connection on remote server blocks all incoming connections

I login into remote server (DigitalOcean) by SSH, and start OpenVPN client there. When this client gets connected to its endpoint, my SSH connection breaks. After that I cannot connect to server or ...
1
vote
2answers
108 views

How to properly use ssh ControlMaster [duplicate]

I have a script which runs several commands remotely through ssh. I'm running each command separately because I want to do other things in between executions. However, I don't want to recreate an ssh ...
2
votes
1answer
42 views

manually redirecting X output through ssh

I have a remote server, on which I am able to log in with ssh. However there is no home directory for my user. When I try to ssh -X to that server, ssh tries to put a cookie into ~/.Xauthority which ...
1
vote
0answers
49 views

Can't sftp into server in Mint

This isn't my strongest suit. I have tried multiple fft/sftp programs in Mint, and I cannot sftp (ssh) into the server. I have the exact same settings in xubuntu on another machine and it hooks up ...
2
votes
0answers
48 views

SSH - Unable to access local forward from another host

I have a VPS with 2 public IPs (assume 1.1.1.1 and 1.1.1.2) I am trying to do a local tunnel to my router on my VPS bound to the second IP, and then access it via another machine. I do the following -...
2
votes
0answers
25 views

Certain folders are always missing using Rsync to server

I have tried several different ways using rsync modules and ssh trying to pull my linux desktop from my freenas server and no matter how I do it, certain folders are always missing. I am trying to ...
1
vote
1answer
103 views

SSH login keeps kicking me out

I am on Centos 6.6 and recently updated my server using yum, it updated a bunch of things and everything seemed fine, but I was also trying to update Ruby RVM and Node.js and NPM (Node Package Manager)...
1
vote
1answer
59 views

Chdir fails even though the user has a home directory assigned

I'm facing this problem - when I ssh to the server, the user is authenticated correctly, but then the connection is closed with: Could not chdir to home directory /home/blazej: No such file or ...
1
vote
0answers
147 views

Java Process hangs with .exec and ssh

EDIT: I believe the issue is that the ssh connection is creating background connections that are still open (cf. http://superuser.com/a/617670). I would run ssh with the -f flag, but I need to be sure ...
1
vote
1answer
161 views

Find the hostname or IP of a remote ssh session in Solaris

If I am logged into a Solaris server from my Windows laptop via putty using ssh, how, on the server, can I determine my Windows laptop IP or hostname?
2
votes
1answer
206 views

Run SSH over a SOCKS proxy?

I need VPN-like behavior locally, without using a VPN. I've created a SOCKS proxy to a given server which is reachable from the WAN, and I want all of my traffic forwarded through that proxy so I ...
3
votes
1answer
75 views

Does SSH access trigger keyboard interrupts?

So, I've been studying the basics for my LPIC-1, and I have a question about /proc/interrupts When consoled into a server, I can see key logging occurring (cat /proc/interrupts | grep i8042 count for ...
4
votes
2answers
417 views

Unable to SSH Using a Private Key Through Bash Script

To start with, I apologize if this is a painfully obvious/trivial issue, I'm still learning the ins and outs of linux/unix. I work with a few servers that require access via ssh and private key to ...
2
votes
3answers
283 views

Accidentally port 22 got closed, how do I fix the SSH access?

Accidentally, Port 22 got closed. I cannot ssh into the instance, though the instance are running well on other desired ports. Getting following error while doing SSH. ssh: connect to host X.X.X.X ...
1
vote
1answer
32 views

Check whether Built-In Audio is active from different user login

In my job, I support remote employees running Linux Mint via SSH and VNC. Each employee uses a USB headset, which is the only sound device we want to be active. The sound device we need to disable ...
3
votes
1answer
90 views

Auto sudoers entry on ssh login by a non-sudo user

This problem I am facing in Gcloud VM (ubuntu 14.04 image). As a admin user, if I create another user say UserNew without giving sudo privilage to him. sudo adduser UserNew I carefully checked ...
2
votes
2answers
117 views

Screen - weird behavior after exiting Vim

I am facing problems with my configuring screen. My screen.rc is very simple and looks like this: altscreen on termcapinfo xterm ti@:te@ I wanted to configure screen to have the same behavior as ...
1
vote
1answer
38 views

How to understand output from “ssh -O check” in bash scripts?

I want to check the master process listening on ssh.sock is still alive. Currently I'm checking whether the exit code returned by ssh -S ssh.sock -O check <my-server> is zero, but I'm not sure ...
1
vote
1answer
157 views

ufw allow ssh - and then connection gets lost

I'm trying to set up a debian server in the cloud, over SSH. I log in using a key. After the initial startup I want to set UFW: apt-get install ufw ufw allow ssh ufw enable This is how I've done ...
1
vote
0answers
39 views

Error with `ssh -Y`, error in locking authority file

I am using X11 over the secure shell with the "trusted forwarding" flag, i.e.using trusted forwarding with ssh -Y Today I have been receiving the following error: /usr/bin/xauth: error in locking ...
2
votes
2answers
220 views

Run a command in an interactive shell with ssh after sourcing .bashrc

I want to ssh into a remote Ubuntu computer, source my .bashrc and run a command that depends on parameters set by that .bashrc. All that in an interactive shell that doesn't close after the command ...
1
vote
2answers
344 views

Why can't I authenticate to GitHub?

my_username@my_username-laptop MINGW64 ~ (master) $ ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/c/Users/my_username/.ssh/id_dsa):Enter Enter ...
2
votes
1answer
39 views

How do I set a script to randomly print to a user's SSH session without setting it up as a Cron job?

I'm managing a small server at work that we use for Samba and SSH. I'd like to mess around with my coworkers by having a script run at random times of the day where it fetches a random quote (...
1
vote
2answers
183 views

SSH login not accepted, and no delay between ssh login attempts

When ssh'ing to my server (RaspPi running Arch), it doesn't accept my password (which I'm 98% sure is correct), and the usual delay before Permission denied, please try again. is not there. Elsewise, ...
1
vote
1answer
68 views

How can I reach a remote ssh server through my http proxy (80 port)?

I want to reach a remote ssh server through or over my http proxy. My proxy requires authentication, so I am a little lost.... could somebody give me a hand? Thanks in advance.
1
vote
3answers
29 views

Get current execution of command out in ssh?

There is a thing that I need help with. I am running a simulation command in a servr using ssh, from my terminal. The simulation is running for 10+ hours. I am expecting output after 15+ hours. ...
4
votes
1answer
47 views

How do I stop ssh from offering other keys?

I have some server dev.example.com and in its authorized_keys file I have my ~/.ssh/id_rsa.pub key. I also have an ~/.ssh/my_test.pub key. My ~/.ssh/config specifies that for dev.example.com it ...
3
votes
2answers
615 views

Why does ssh-copy-id with a non-`id_rsa` file on Mac OSX tell me that my key already exists?

I am trying to use a non-standard key name to copy to the remote server but it's telling me that the key already has been copied: $ ssh-copy-id -i /Users/wwerner/.ssh/my_other_key me@example /usr/...
3
votes
2answers
79 views

SSH to same directory on remote as local

I am trying to write a small function in my .bashrc on my dev server that will give me a red shell on our production server that opens in the same location as I am in on the dev server. The bash shell ...
1
vote
1answer
98 views

ssh tunnel and oracle

On oracle server i can connect clear sqlplus user/pass@hostremote/SID If i make a tunnel ssh -L 1521:localhost:1521 -F -n hostremote -vvv give me debug1: Connection to port 1521 forwarding to ...
0
votes
0answers
38 views

Upgrading from SSH1 to SSH2 on Linux RAID Array command line

Any ideas of how I could upgrade from SSH-1 to SSH-2 on RAID array on the command line. Raid Model: HP StorageWorks MSA2312i. Below shows that the raid node 10.5.5.75 has SSH-1.99. I need to ...
0
votes
0answers
24 views

How to give chroot ssh access user access to /var/www/html [duplicate]

I followed this guide to set up chroot access for a vendor to our web server: http://geek.co.il/2010/03/14/how-to-build-a-chroot-jail-environment-for-centos It works and I have a chroot jail set up, ...
1
vote
1answer
516 views

why ssh myLogin@localhost works but ssh root@localhost doesn't? [duplicate]

I know ssh root@localhost is a bad idea...I get it. But why doesn't ssh root@localhost work? I even changed my root password just in case: > sudo -s > passwd But still when I do ssh root@...
1
vote
2answers
2k views

SSH Connection Refused In CentOS?

For a week, SSH was working perfectly. Today I restarted my server and I got this error in my Mac terminal: ssh: connect to host 162.243.7.7 port 22: Connection refused This is very odd... I am ...
1
vote
5answers
2k views

rsync keeps disconnecting: broken pipe

I'm using rsync to backup my home directory. This has been working fine for a long time now. Here's the command I'm using: rsync \ -pavz \ --delete \ --exclude 'mnt/' \ --exclude '....
1
vote
1answer
84 views

Linux shell script to reboot a few linux machines

I am task with something I have never done before. I am sure is easy for some of you :) I need to execute a linux shell script from our network that will connect ssh to this devices and reboot them ...
0
votes
1answer
67 views

bash PHP versus Plesk domain installed PHP

I have configured my domain to use PHP 5.5.30 ... but when I SSH into the server, bash is telling me that the php -v is 5.4.13 Why does bash use a different version of PHP, even though when running ....
0
votes
1answer
25 views

How can I improve performance using a system remotely via SSH?

I know I can use compression with the flag -C. Any other ideas? Also, besides my internet connection (which I think is fairly fast), what could be causing the network to slow down?
0
votes
1answer
171 views

How to test bandwidth and latency over ssh with X11?

I am working remotely on a machine using X11 trusted forwarding with 'ssh -Y`. How can I test the latency and bandwidth between me and the server?
2
votes
0answers
57 views

SSH freezes the whole computer when logging in

I am using a Debian wheezy mainly to play music and browse web as a shared computer. Problem is that all SSH connections freeze the computer for a moment when initiated. To be clear: all these SSH ...
1
vote
2answers
118 views

Execute command on remote screen

On a remote server I have multiple screens open and I use each one for different purpose. For example the screen with the ID 'build' it is being used to compile some programs. I can open that screen ...
0
votes
1answer
49 views

Update /bin/usr/php in CentOS 6 [duplicate]

I have Plesk 12.5 installed, and it allows you to install multiple versions of PHP to be selectable within hosting spaces (domains), but the issue I've having right now is that the php that is being ...
1
vote
3answers
92 views

Audit simultaneous logins in AIX

We are in a banking enviornment and our core system is based on AIX. Multiple users are logging in with the same userID at the same time using SSH. I know I can see who SSHed into the system from ...
16
votes
6answers
3k views

Is it possible to use Unix commands to `cp` a file in my subdirectory into a remote computer via SSH?

I have a series of software files downloaded into my subdirectory "~/Downloads" on my personal computer. I am also using bash to connect remotely to a computer using ssh. Is it possible to transfer ...
5
votes
1answer
141 views

Network namespace, ssh, X11

I connect (via ssh -Y ...) from a machine (=client) to another machine (=server, actually in my LAN, but it is irrelevant); then I start a new network namespace (NNS, for short) on the server, I start ...
2
votes
1answer
58 views

Should I generate the SSH key pair to give temp access to someone, or accept their public key?

I want to give an external user temporary SSH access.. Should I generate the key-pair and securely give them the private key. Or should I accept their public key. ? Advantages of the first ...
2
votes
1answer
739 views

Change PHP PATH Variable for SSH

I'm trying to figure out how to change which version of PHP the php alias uses... I want it to use: /opt/plesk/php/5.6/bin/php But it currently uses: /usr/bin/php (I think) How can I ensure that ...
1
vote
1answer
167 views

SSH: super high cpu usage when X forwarding a browser's embedded video

Two machines, A et B, on a wired LAN with X11 forward running fine. A is a fully configured Arch linux but has a bad screen. B has a much better screen even though an old netbook, so I work on it ...
2
votes
1answer
133 views

RSYNC periodically fails via SSH, broken pipe

A post-commit script calls a rsync command to update files from the SVN system to a production web server, both running Ubuntu 10.04.3, rsync 3.1.1. The issue had been occuring with rsync 3.0.7 as ...