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 hangs on login after 'last update'

I'm having a bit of trouble. My SSH connection hangs for about 10 seconds when logging in. I've tried disabling the system info MOTD and a number of other things but it just doesn't seem to work. Trying ssh user@host -vvv doesn't help either as the…
andy
  • 239
  • 1
  • 4
  • 10
4
votes
2 answers

Command / Method to find the up-time of SSH server daemon & Nginx

I am looking for a method / Linux command to get the up-time of the open-ssh server and Nginx server running on my Ubuntu system. I want to know the up-time for calculating some internal statistics. I am looking for something similar to mysqladmin…
4
votes
1 answer

SSH tunnel to a postgres database

Currently I develop on a remote dev server. I SSH into the dev server (using SSH keys) as ssh -p 22222 user@devbox.com Then from the dev server, I connect to the database over the local network psql -U postgres -h psqldb -d my_database where…
hobbes3
  • 615
  • 2
  • 10
  • 23
4
votes
3 answers

Cannot connect to Openstack Instance via horizon, but SSH works?

I've got an OpenStack deployment running inside a VM for testing purposes. My setup is as follows: Host Ubuntu x64 with Virtualbox -> Guest Ubuntu x64 with OpenStack -> Ubuntu X64 Server Test Instances through Openstack. I realize it is of no…
user991710
  • 203
  • 3
  • 9
4
votes
2 answers

Convert ssh command line arguments to .ssh/config properties

I understand that (almost?) all SSH command line arguments can be replaced with a property in ~/.ssh/config. But it's not at all obvious how to do this systematically: the man page for ssh only refers loosely to the config page (eg, "Port…
Steve Bennett
  • 5,750
  • 12
  • 47
  • 59
4
votes
3 answers

Linux to windows ssh/scp/sftp differential backup solutions?

Here is the setup: Large amounts of large files (many over 4gb, multiple TBs in total) in a simple tree structure that need to be backed up without compression from a handful of linux boxes to a windows backup server. Every day a few hundred gigs…
Carpe_Noctem
  • 43
  • 1
  • 4
4
votes
5 answers

How to allow SSH host keys on Linux (Fedora 10 & CentOS 5.2)

I'm trying to set up SSH host keys from our Mac OS X 10.5 Leopard Server-based central backup server to our two Linux servers running Fedora 10 and CentOS 5.2. The process we usually take works and puts the key in ~/.ssh/authorized_keys, but it…
morgant
  • 1,470
  • 6
  • 23
  • 33
4
votes
0 answers

TCP tunning for ssh port forwarding

I am using an ubuntu openssh server to allow users to connect to and do dynamic port forwarding. the performance is good until about 100 users are connected. beyond that the performance is dropped too much. actually establishing new tcp connections…
4
votes
3 answers

Can't SSH into Amazon EC2

This is my first Amazon EC2 instance but I'm having a hard time and google can't help me out. These are the steps I have taken: Generate a keypair called aws Download aws.pem and put in my /Users/Jim/Documents/sshkeys folder CHmod both file and…
J.Zil
  • 1,123
  • 3
  • 21
  • 29
4
votes
4 answers

Disabling ssh as root on Linux boxes and the challenges of writing scripts

It's a common suggestion from security-minded people to disable ssh as root on Linux boxes. My question is this: Let's say you normally write lots of scripts which ssh to a large number of Linux boxes and perform various root-level tasks. If you…
beaconfield
  • 123
  • 1
  • 1
  • 7
4
votes
3 answers

Forgot the password for an encrypted SSH key that's in my (gnome) SSH agent. How do I extract unencrypted version?

OK, I have an encrypted ssh private key that provides access to a server. My Ubuntu GNOME desktop has an integrated graphical ssh agent (seahorse v3.2.2). That ssh key is in this ssh agent and it's automatically unlocked when I log into my desktop.…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
4
votes
3 answers

ssh: Connection refused when access remotely

I recently installed ssh server openssh-server in my fedora 16. I added my friend user account to my sshuser list. When my friend tried to connect my server computer via ssh using following command ssh sudip@192.168.1.123 then it shows following…
Bibek Subedi
  • 143
  • 2
  • 2
  • 8
4
votes
1 answer

SSH RemoteForward notify client on failure

I am using SSH to forward a port on a remote machine (Client) to another machine (Server) using (~/.ssh/config) Host Client: Hostname {ip} ... RemoteForward localhost:{port} localhost:{port} The problem is that even when there is not one…
Albert
  • 141
  • 2
4
votes
3 answers

Host key verification failed [rsync: connection unexpectedly closed]

I have been stuck with a peculiar problem, where rsync command is not running when it is executed through crontab. Below is the code : #!/bin/sh…
Rudra
  • 199
  • 2
  • 6
  • 11
4
votes
6 answers

How to make sure that ssh is ready to go while booting

We have an automation tool which tries to log in through ssh and send commands, which works fine when server is running. On the other hand while server is booting up, our tool check if the ssh port (22) is open, and if it is open it tries to connect…
Harun Baris Bulut
  • 455
  • 1
  • 8
  • 21
1 2 3
99
100