Questions tagged [ssh]

Secure Shell (SSH) is a protocol primarily for encrypted shell connections. This tag is also used for questions about sshd and openssh, the two standard applications for using SSH.

Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices. Used primarily on Linux and Unix based systems to access shell accounts, SSH was designed as a replacement for Telnet and other insecure remote shells, which send information, notably passwords, in plaintext, rendering them susceptible to packet analysis.

It's important to note that there are two versions of SSH (1 and 2), and that version 1 is no longer considered secure, and should be replaced by version 2 where ever possible.

More information, including the more notable SSH-1 vulnerabilities, can be found at the Wikipedia page for SSH.

8868 questions
4
votes
2 answers

SSH session through an IPSec VPN tunnel freezes when command outputs longer text

I connect to a QNap NAS (Ubuntu 4.1.2) in the office through an IPSec tunnel established between two pfSense firewalls. This has worked fine for months. I recently replaced the NAS with a newer model and upgraded the firmware to the latest version.…
cdonner
  • 381
  • 1
  • 5
  • 15
4
votes
1 answer

Can I get rsnapshot to create LVM snapshots on a remote machine?

I'm currently running rsnapshot on host1, backing up some files from host2 using the inbuilt SFTP support (I have daily, weekly, and monthly backups running in a standard rsnapshot configuration). Both hosts are running Ubuntu and use LVM. Is there…
Andrew Ferrier
  • 894
  • 9
  • 21
4
votes
1 answer

The Right Way to setup SSH keys to automate scp

I want to setup SSH keys to automate scp jobs. My current assumption is that "automate" implies SSH keys without a password, but I am open to your suggestions. I did a lot of Googling before I asked this question. Here is what I found: Lots of…
kevinarpe
  • 191
  • 10
4
votes
3 answers

Backup Permissions for Entire File System

Here's the skinny: I have a Linode VPS that I want to backup to my local laptop via rsync. I have just generated ssh keys for the communication and left a blank passphrase for the private key so I can rsync via cron without worrying about…
user970638
  • 283
  • 1
  • 2
  • 10
4
votes
1 answer

SSH 'connection reset' when attempting multiple simultaneous outbound connections to the same host

I have a script that executes a Rake remote task which executes once for each of two roles. Both roles are users on the same Vagrant instance. So essentially the task is opening two SSH connections to the same VM in parallel and executing some…
yixu34
  • 43
  • 4
4
votes
1 answer

ssh rsa key auth only occurs if I am already logged in on console

Can't figure this out - am using id_rsa key based authentication to our servers (approximately 400 Linux and UNIX servers). In this case I have 3 identical servers with 3 recent installs of Ubuntu 12.04 - svr1 svr2 svr3 for the sake of this…
user150755
  • 43
  • 2
4
votes
1 answer

ubuntu 12.10/linux mint 14 ssh-copy-id doesn't work and returns Ambiguous output redirect

I recently got a new computer and I'm trying to use ssh-copy-id to put my keys on another server so I can login without password. but when I try ssh-copy-id -i ~/.ssh/id_rsa.pub user@server and after inputting the correct password it…
Marc
  • 143
  • 1
  • 3
4
votes
3 answers

sshd ignores authorized_keys and keeps trying authorized_keys2

I just uploaded my public key to a server, ensured permissions are right, and when i try to log it simply refuses it. after enabling loglevel DEBUG in sshd_config i get: Nov 22 06:53:36 host-1 sshd[8612]: debug1: Forked child 8617. Nov 22 06:53:36…
gcb
  • 344
  • 1
  • 4
  • 18
4
votes
3 answers

set up a chrooted SFTP login with OpenSSH

How might I create an SFTP login for an untrusted user in which he can only access the files in his own home directory and not run any commands? The online tutorial OpenSSH SFTP chroot() with ChrootDirectory is almost exactly what I need, except…
Sophie Alpert
  • 1,639
  • 1
  • 13
  • 16
4
votes
7 answers

SSH Session Inactivity Configuration?

I'm trying to zero in on the exact option, or combination of options, that will force each SSH session to be terminated when inactive for a specified time. I'm using Putty to SSH to a RHEL AS3 server; keepalives are set to "off" (0) for Putty, and…
Dizzle
  • 175
  • 1
  • 2
  • 8
4
votes
9 answers

Is there a way to SSH / SCP to another server as a different user, via a script?

I need to automate a way to distribute files to many servers. The problem of course is I need to use a secure protocol (SSH or SCP) and the username / password on each server is different. The scenario is we have a master server a, with user a_prod…
Kevin K
  • 833
  • 1
  • 6
  • 8
4
votes
4 answers

Kill an SSH tunnel after X minutes even if it's still being used?

I'm setting up some background SSH tunnel for some backup procedures. However I'm worried the ssh process just sitting around. At the end of my script I kill the PID, but what if something happens to my script and it doesn't finish. I want something…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
4
votes
1 answer

Why does SVN+SSH prompt for password despite a SSH key file?

I have keys configured such that I can login to SVN_HOST like this: ssh @ Will log me to SVN_HOST with no password prompt. So far so good; however: svn update svn+ssh://@/ Still…
SMTF
  • 165
  • 2
  • 6
4
votes
3 answers

Use server's IP via SSH tunnel

Firslty my setup is an Ubuntu laptop and an Ubuntu server. I have a program on my local laptop which needs to access a certain web-service, (lets call it http://someserver.com/someservice123). Now this service has a firewall which only allows access…
user143278
  • 47
  • 2
4
votes
1 answer

Allow SSH only on one of a servers IP addresses

I have a server with several IP addresses that hosts sites on each IP address. I have one ip address that does not have a site associated with it. I want to allow SSH login only to the one IP address that does not have a site associated with it. Is…
Adam
  • 117
  • 1
  • 9
1 2 3
99
100