When you ssh, can the password you enter to connect, be intercepted if you're using untrusted public Wi-Fi (coffee shop, library, airport, etc).
|
|
|
SSH is encrypted. But the rule of thumb is that, even if difficult, you should never assume anything sent out through a public channel can't be eavesdropped. I once walked into an article on how SSH passwords are vulnerable to statistical analysis — that's one way you can crack the credentials. The passwords can be sniffed, it's just not easy to get the corresponding cleartext. You can also explore other authentication strategies, such as public-private keypairs, which may be not as easy to break as passwords (as far as you can't factor primes quickly). |
|||||||
|
|
SSH is designed to be usable across an untrusted network. Wifi, wired, it doesn't matter: SSH assumes that all traffic can be monitored by an attacker, and even that the attacker will try to intercept packets and replace them by different ones. The first time you run ssh from a particular client to a particular server, ssh asks you
At this point, you need to check that the remote server's identity (given by the key fingerprint) is the one you expect; an attacker could be trying to pass as the server. Once this verification is made, and for every subsequent connection from that client to that server, you can trust that the communication cannot be spied on by eavesdroppers and reliable (in that the commands you type really do go to the server and the responses are really the ones the server sent). Eavesdroppers can't obtain the data in the ssh session, but they can observe the amount of traffic as well as its timing. This might leak confidential data; passwords typed interactively are particularly at risk: they're easy to recognize at the beginning of the connection, and they're sent character by character, so the eavesdropper can measure the time between keystrokes, and each measure makes it a little easier for her to guess the password (easier does not mean easy!). This weakness does not affect public key authentication, which is recommended over passwords for both security and usability. |
|||
|
|
|
You can certainly capture packets on a public wi-fi network but if you are using SSH and your passwords are not sent in the clear it would take quite a bit to decrypt the thing you will capture. |
|||||||||
|