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
66
votes
3 answers

Temporarily disable ssh public key authentication from client

Is there a way to temporarily disable public key authentication when ssh'ing, and use password authentication instead? I currently want to access remote server, but I'm using another laptop, not mine. Browsing that link, I found that the command ssh…
Nsukami _
  • 771
  • 1
  • 5
  • 8
66
votes
4 answers

Check OpenSSH version and update instructions on FreeBSD system

On a FreeBSD system (8.1), I am looking for instructions on how to check the running version of OpenSSH and also instructions on the best way to download install an update of OpenSSH
ICTdesk.net
  • 1,173
  • 4
  • 12
  • 18
65
votes
4 answers

How to manage my .ssh/known_hosts file

I run an Ubuntu desktop with a bunch of virtual servers in Virtual Box to test stuff out, etc. In the past I have also been connecting to other kinds of remote VPS Linux boxes. Currently my .ssh/known_hosts file has a whole bunch of keys in it, most…
Luke
  • 3,826
  • 8
  • 36
  • 40
65
votes
5 answers

How can I launch a screen session with a command over ssh on a remote server from my desktop?

I want to be able to launch screen sessions on remote servers from a single ssh command on my desktop. However, screen seems to need a terminal, which is not available when running a command through ssh. So the obvious ssh root@my.machine screen…
Thomas Vander Stichele
  • 1,065
  • 4
  • 14
  • 16
65
votes
9 answers

Cannot SSH: debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY

We have a server on Amazon EC2 running SSH is on a standard (22) port. I placed my public key at the /.ssh/authorized_keys file. The fun thing is that yesterday it was working great! But today, I don't know what happened! I just can't log…
bakytn
  • 1,217
  • 5
  • 16
  • 28
64
votes
11 answers

What can cause slow ssh session?

I ssh on remote host but terminal performance is poor. Symbols I am typing are not shown immediately, but with some delay. Sometimes two symbols are shown at one time after delay.
lexsys
  • 2,913
  • 6
  • 31
  • 34
64
votes
4 answers

How to change sshd port on Mac OS X?

I want to change which port sshd uses on a Mac server. For example, let's say from port 22 to port 32. Editing /etc/sshd_config does not seem to work. Does anyone know how to change it? I'd prefer a method that's compatible with all OSX versions…
Alexander Artemenko
  • 1,393
  • 3
  • 13
  • 13
62
votes
5 answers

I accidentaly forbid SSH connection to a remote server... What's next?

Let's say it again, we all make mistakes, and I have just made one. A brief history: I was doing some stuff on a VPS (Debian) I'm renting, when I noticed some strange behaviour. Using the netstat command I saw an non-authorized connection through…
tomatoGuy
  • 621
  • 5
  • 3
62
votes
5 answers

associate name with ip for ssh?

Let's say I just have an ip address for a server and I don't have a domain with it (it's just a database server, so it doesn't need a domain). I don't want to have to remember the ip address every time, so is there a way I could still use the syntax…
Matthew
  • 1,859
  • 4
  • 22
  • 32
60
votes
7 answers

adding password to .ssh/config

I'm using ubuntu 12.04. I'm using ssh for connecting to many servers daily, so I put their parameters in .ssh/config file; like this : Host server1 User tux Port 2202 HostName xxx.x.xx.x I know we should use key-pair ensure security, however…
Ajo Augustine
  • 1,262
  • 4
  • 16
  • 21
59
votes
1 answer

Can't enter the letter 'e' over ssh

Right now I am experiencing some very, very weird behaviour on a Ubuntu 14.04.2 LTS server I am managing. Connecting to the server over ssh either from cygwin(mintty) or a terminal on a Linux machine, I can't type the letter e. I have done the…
Zulakis
  • 4,153
  • 14
  • 48
  • 76
57
votes
8 answers

How can I find current SSH protocol version of the current connection?

I connect to a Linux machine (CentOS 6.4) using PuTTY. Except from fact that I can set PuTTY to only use one type of protocol, how can I find the current SSH connection's version (SSH1 or SSH2)?
codiac
  • 689
  • 1
  • 6
  • 8
56
votes
11 answers

Is there an equivalent to ssh-copy-id for Windows?

Is there any equivalent or port of ssh-copy-id available for Windows? That is, is there an easy way to transfer SSH keys from a local machine to a remote server under Windows? In case it helps, I'm using Pageant and Kitty (a Putty alternative)…
Matt V.
  • 837
  • 1
  • 9
  • 12
56
votes
9 answers

How do I run a local bash script on remote machines via ssh?

I am looking for a way to push configuration from one central machine to several remote machines without the need to install anything on the remote machines. The aim is to do something like you would find with tools like cfengine, but on a set of…
tremoloqui
  • 1,303
  • 1
  • 10
  • 9
56
votes
4 answers

Free public SSH server for testing purposes

I'm writing an application that makes connections to SSH servers. It doesn't need anything specific from the server (except running under GNU/Linux). I need SSH servers for running my application tests. I was wondering, is there some kind of free…
nicoulaj
  • 1,175
  • 2
  • 10
  • 12