You need to use the following syntax to speed up SSH 11 forwarding:
ssh -X -C -c cipher1,cipher2 user@server.example.com
Where,- -X : Turn on SSH X11 forwarding
- -C : Requests compression of all data. You can also specifies the compression level to use if compression is enabled using the CompressionLevel option in ssh_config file. The argument must be an integer from 1 (fast) to 9 (slow, best). The default level is 6, which is good for most applications.
- -c : Set ciphers. Blowfish is a fast block cipher; it appears very secure and is much faster than 3des. (see sshd man page for more info).
$ ssh -X -C -c blowfish-cbc,arcfour vivek@www544.nixcraft.net
[www544 ~] $ firefox &
You can avoid typing by editing /etc/ssh/ssh_config file as follows:
Save and close the file. You can now simply connect it as follows:
Cipher blowfish
# default line
##Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
## see man page for more info on Ciphers
Ciphers blowfish-cbc,aes128-cbc,3des-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
Compression yes
$ ssh -X vivek@www544.nixcraft.net
[www544 ~] $ firefox &
References:
- man pages - ssh, ssh_config, sshd
No comments:
Post a Comment