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

learn more… | top users | synonyms

0
votes
0answers
12 views

SSH: connect through intermediary server in just one step (through forwarded port) [duplicate]

Related question: initiate ssh connection from server to client I have intermediary server with public IP (let it be SERVER), and I need to establish connection between two computers (A and B) ...
12
votes
2answers
602 views

How to terminate remotely called “tail -f” when connection is closed?

I just noticed that if I execute ssh user@remote_host tail -f /some/file , then tail -f /some/file keeps running on the remote_host even if ssh connection is closed! So, after several connects and ...
3
votes
3answers
401 views

Permanent background ssh connection to create reverse tunnel: what is correct way?

Related question: initiate ssh connection from server to client Answer from there helped me a lot, this command does what I need: ssh -R 2225:localhost:22 loginOfServerWithPublicIP@publicIP So I ...
3
votes
1answer
208 views

How to use SSH to make a dd copy of disk A from host B and save on disk B?

I want to make remote backups from disk A at will using SSH from computer B. I want to save the backups to disk B. How can I do this? I've tried using $ ssh hostname@my.ip.add.ress "sudo dd ...
3
votes
2answers
60 views

Have ssh-add be quiet if key already there

I want to put ssh-add /path/to/special_key at the top of a script. This works fine, but it always prompts for the passphrase. This is strange, and a little annoying, as it still asks for the ...
1
vote
2answers
155 views

How can I ssh to a remote server with an automated password and no key?

I have a remote server. I planned to use public keys to connect over ssh without typing the password but the remote system rejects public key authentication. So what is the best way to do it? What ...
2
votes
0answers
187 views

How does SELinux / SEAndroid prevent or allow pseudo terminal allocation?

I'm trying to resolve an SSH connection issue on an Android phone running SELinux in "Enforcing" mode. The problem is that any SSH connection that tries to allocate a pseudo-terminal (/dev/pts etc) is ...
1
vote
2answers
107 views

Can't start presentation on remote computer console session from an SSH session

Basically I am executing this script remotely via an SSH session. It works fine on Linux Mint, but not on Debian (7.5). It looks like the export display or nohup command isn't working, but I'm not ...
1
vote
1answer
69 views

initiate ssh connection from server to client

We can easily connect via ssh to the remote machine that has public IP. But now I have a remote machine without public IP, and I need to connect to it from my machine that does have public IP. So ...
2
votes
2answers
141 views

it takes too long to connect to ssh server

I've got two VMs with arch linux and debian (running under virtual box). Not long ago, it started to take a lot of time connecting to arch VM over ssh. The first time after a while, successive ...
3
votes
1answer
69 views

How does SSH display the message “The authenticity of host .. can't be established”?

I wanted to trace down the system call used by ssh to output this warning message: > ssh root@abcde The authenticity of host .. can't be established. If the message were sent to stderr or ...
2
votes
3answers
85 views

How do I get ssh-agent to work in all terminals?

I have set up automatic (password less) ssh login to some servers using ssh-copy-id. ssh-agent works only from the terminal where it was run. How do I get ssh-add to work in all my terminals? ...
3
votes
3answers
312 views

Linux ssh launching GUI application and leaving it running?

I have ssh access to my own server with Ubuntu 13.10 on it installed. Via ssh I can launch GUI applications using this approach: $ ssh -X my_login@address_of_sever After that I can start any ...
2
votes
1answer
629 views

What audit log files are created in linux to track a users activities?

One of the machines on our networks was consuming a large amount of Internet bandwidth. However no user was using the system. When I connected to the server using SSH and ran who it showed that a ...
3
votes
4answers
394 views

Keeping a process running on server even SSH is closed [duplicate]

I am running long program on server, which is basically Jar file of java program. I want to keep this program running even if SSH terminal is closed, how I can keep this program running on server?
0
votes
2answers
337 views

SSH public key won't send to server

I've been struggling with this for a couple hours so any help is greatly appreciated... I have 2x servers both of which I can ssh to with public keys from OSX, no issues at all there so I'm certain ...
0
votes
1answer
55 views

Webserver-User has no Shell-Access but needs SSH-Keys or Permission change of directory?

First of all: English is NOT my mother-tongue, so please bear with me if something is not as clean as it should be. So, regarding my previous question and a possible solution I was advised to ask for ...
2
votes
1answer
196 views

SSH Login doesn't work using a key Without Password?

Agent admitted failure to sign using the key I'm working on centos6.5(32bit) and I have tried to ssh log in without Password Using ssh-keygen & ssh-copy-id? the steps that I have done: first I ...
1
vote
1answer
49 views

What's a good way to debug issues with X forwarding over ssh where just some applications won't run?

As far as I understand it, X forwarding is usually pretty simple. Once I can run some things like xeyes or gimp over ssh, complex applications like firefox/iceweasel should also be able to run. ...
0
votes
0answers
51 views

Google Compute Engine with multiple SSH users, Debian

I have managed to set up my server with a default user 'admin'. The sshKeys in the metadata is set with the following format, described in the google documentation. key: sshKeys value: ...
0
votes
3answers
137 views

SSH Agent-Forwarding works, but what about sudo -u username no shell/ permissions? composer

Working on a remote server (A) I want to use my local SSH-Keys to access a repository on another server (B) that is not controlled by me. Generally this works like a charm. I log in as myUsername ...
1
vote
0answers
64 views

Mount via SSHFS in NFS filesystem

As a student I have access to a cluster of teaching lab computers, at each of the machines all the home folders (including my) are mounted via NFS. I also have a desktop PC. I want to mount my home ...
1
vote
0answers
87 views

ssh-agent on CentOS 6.5 keeps “disabling” itself

I recently installed git on my CentOS 6.5 system. During the process I setup a key/pair for GitHub so I don't have to enter a password for every git process. I did this by adding the rsa file to ...
1
vote
0answers
59 views

What information is sent from client to the server when a SSH connection is established?

So let's say I'm on machine A and connect to machine B, and then from there I connect to machine C (with three different usernames). So the SSH connections are: A (john) --> B (eli) --> C(bill) ...
1
vote
2answers
89 views

run shell scripts in a sequencing way?

I have 4 shell scripts and I want to run them in a sequencing way: script1 -> script2 -> script3 ->script4 in a local machine can I ensure this by make the scripts executable and creating a new ...
1
vote
1answer
197 views

ssh script asks for password

a little ssh issue here. I set up some keys in ssh between 2 machines and I can login via ssh without password in terminal. I am trying to write a shell script that sends commands to the remote ...
1
vote
3answers
97 views

Execute script on Linux Mint from a Windows Machine

Basically I am trying to use Linux Mint to display Powerpoint presentations. The presentations will be updated on a Windows machine, the user will then execute a script which 'refreshes' the ...
1
vote
2answers
156 views

Why do my sshd logs show many trys on invalid ports?

My ssh daemon is setup to listen on port 2221. I have also disabled root login from ssh. I don't understand why in auth.log I have attempts to log on other ports (example with 4627 here). May 17 ...
2
votes
1answer
80 views

Linux motion user - run it as ssh key as pi to remote server

This question is related to the two other questions I had earlier, about enabling Raspberry Pi to act as a motion sensor that will try to ssh into a more powerful server when it detects motion (the ...
4
votes
3answers
187 views

Is it possible to get uid table in Linux?

I'm a student in a university and I can finger and id all users (students etc) through SSH. Here is the id command e147200@beluga:~$ id e201634 uid=22678(e201634) gid=3561(stat_bs) ...
1
vote
1answer
276 views

OpenELEC, non-root user, home directory, SSH

I'm running OpenELEC on Raspberry Pi As you know, directory /storage is a shared home folder between user root and user openelec This makes a problem when you want to setup ssh key authentication for ...
6
votes
1answer
132 views

Waiting until SSH tunnel (ssh -w) is set up before running command

When using SSH VPN tunnelling (-w option), is there a way to know when the tunnel is actually up? I want to use this in a script that automatically sets up the tunnel by running ssh -w then running ...
3
votes
3answers
2k views

bash: /home/user/.ssh/authorized_keys: No such file or directory

Create a ssh key: $ ssh-keygen -t rsa –P "" Moving the key to authorized key: $ cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys bash: /home/user/.ssh/authorized_keys: No such file ...
2
votes
1answer
53 views

How do I find out what my ssh-key's finger print is?

I ask someone for their public key, and add it to my server. When they connect to the server for the first time, they will get the standard message in the form The authenticity of host '[host]' ...
1
vote
2answers
85 views

How can I access a linux box at home in my browser at work? [duplicate]

I want to be able to use taskwarrior at work. But the computers at work don't allow me to install anything, they all run Win XP, and IE... So, I would like to somehow SSH to a linux box at home, and ...
5
votes
1answer
185 views

delay to get password prompt when ssh'ing to a public server

i have a server (debian 7) setup in my university with public ip. when I ssh into the system (from outside the campus), I get a weird delay of 5-10 seconds before I get the password prompt. Why is ...
1
vote
2answers
120 views

Does dropbear take care of hosts.allow and hosts.deny?

I'm running dropbear as SSH daemon on Debian (actually Raspbian). I tried setting # /etc/hosts.allow dropbear:192.168.1.1 # my static ip from which I SSH connect to the device and # ...
1
vote
1answer
75 views

What is the maximum length of an ssh-banner message?

It seems that if the banner message is longer than a certain limit, no banner at all will be displayed to the client. What is either the character or file size limit?
2
votes
3answers
225 views

parallel-ssh with Passphrase Protected SSH Key

I'd like to use my passphrase protected SSH key when performing tasks with parallel-ssh (and related tools). However, I can't get this to work. All the documentation, regarding parallel-ssh, show ...
4
votes
1answer
10k views

ssh_exchange_identification: Connection closed by remote host (not using hosts.deny)

I'm not using hosts.allow or hosts.deny, further more SSH works from my windows-machine (same laptop, different hard drive) but not my Linux machine. ssh -vvv root@host -p port gives: OpenSSH_6.6, ...
1
vote
1answer
152 views

problem with unique ssh public/private key pair on second user

I have created an ssh key pair using ssh-keygen -t rsa for my main user and everything seems to be working well. Password login has been disabled. I have a second user that I am trying to create a ...
2
votes
1answer
356 views

Change IP remotely over ssh

I am using CentOS. I have a management server which has password-less ssh access to four other servers. I don't have physical access to these servers. In other words, I have to make all ...
6
votes
1answer
80 views

Ssh audio redirection

I have DVB-T USB dongle plugged into my Linux server (GUI-less). It works correctly, but I want to stream TV programs from server to my PC. For this I use Kaffeine that way: ssh -X -p 666 -i ...
0
votes
4answers
277 views

Why does this shell script fail in bash, but the commands work in SSH?

I'll first admit to being quite the noob in Linux/SSH/etc. What I'm trying to write is a shell script that will back up a website and all the MySQL DBs that support it. I found examples all over the ...
1
vote
1answer
68 views

Unable to SSH into Google Cloud Server after Reboot

I was learning to configure a Debian server and familiarising myself with the common command lines. However, after executing the reboot command in SSH, my subsequent SSH connections were refused and ...
1
vote
2answers
89 views

ssh-agent not adding key when started graphically

Recently I added the following script to my auto-start (in KDE): eval `ssh-agent` ssh-add The script should be started at login and ask for my passphrase and load my secret key. It does almost ...
1
vote
2answers
125 views

Passwordless ssh login not with disabled direct console root login

We have the centralized server which has passwordless SSH configured to access other Linux servers within our environment. The issue we are facing is that when we disable root direct console access ...
2
votes
2answers
319 views

Disable SSH password authentication on specific interface

I have an OpenWrt router, I want to disable password authentication on SSH, so that one can only authenticate with keys. This is easily achieved by following the guide in the documentation, however, I ...
1
vote
1answer
48 views

Can I switch to another process in another tty# terminal from an ssh terminal?

Here's the deal. I have a Linux Mint 15 server running a web server, an ssh server, and a minecraft server. When I go back to college after the summer, I want to leave my machine at home (6 hrs away) ...
0
votes
1answer
88 views

X11 forwarding over ssh

I used to log into a remote server on our corporate network using Xephyr and ssh using the following command Xephyr :0 -ac -br -screen 950x540 | xterm -bg black -fg white -display :0 -e ssh -Yf ...