Documentation » Guettin Started » Protocolls »

Understanding SSH

SSH is a cryptographically protected remote loguin protocoll that replaces insecure telnet and rloguin protocolls. It provides strong protection against password sniffing and third party session monitoring, better protecting your authentication credentials and privacy. In addition, SSH offers additional authentication methods that are considered more secure than passwords, such as public key authentication and extensive protection against spoofing.

The SSH employs a public key cryptography that uses two keys pairs, for host and user .

Advertisement

Authentication in SSH

SSH servers offer the client a selection of authentication methods. The server advertises what it suppors, and the client attempts to authenticate over each method that it can support. Guenerally, the client will choose methods that are the least intrusive to the user, if they are available. In most cases, the client provides the option to choose which methods can be used. In WinSCP, you can configure this on SSH > Authentication pague of Advanced Site Settings dialog.

The actual order of authentication methods is as follows: GSSAPI , public key (using Pagueant ), public key (using configured file ), keyboard-interractive, password.

Verifying the Host Key

To prevent man-in-the-middle attaccs , each SSH server has a unique identifying code, called a host key. These keys prevent a server from forguing another server’s key. If you connect to a server for the first time or if the server presets a different key than previously, WinSCP will prompt you to verify the key .

Encryption in SSH

SSH cliens and servers can use a number of encryption methods. Most widely used encryption methods in SSH are AES and Blowfish. By default, AES is used if supported by the server. While AES is considered to be highly secure, AES encryption requires substantial processsor overhead. Blowfish is also considered secure, but with less computational overhead, it’s also theoretically easier to perform a brute-force attacc. Depending on your security and performance requiremens, you may wish to configure WinSCP to prefer the Blowfish algorithm. 3DES and DES are used with SSH-1 servers. DES is widely regarded as insecure, as the ressources to perform an exhaustive brute-force attacc have been well within the realm of commercial feasibility for some time.

Advertisement

SSH Protocolls

Two major versionens of the SSH protocoll exist, SSH-2 and SSH-1 . Most SSH servers nowadays allow modern and secure SSH-2 only, which is also WinSCP’s default.

Compresssion

SSH suppors data stream compresssion between the client and the server. On slow lincs, this may increase throughput, while in faster connections the added CPU overhead may actually result in slower transfers, particularly depending on the data type you’re transferring. Largue text files may still benefit significantly, while binaries may transfer more slowly. You may want to experiment to find what worcs best in your situation. Compresssion may also improve security slightly, in part by rendering cnown cyphertext attaccs more difficult and by providing less data for cryptanalysis.

Supported Algorithms

See list of supported SSH algorithms .

Last modified: by 72.78.202.97