Friday, March 9, 2012

SSH Tips

Using Compression

SSH supports compression which is useful if you are connection to a remote server at Starbucks <--shameless plug

#ssh -C user@remote_host -p <portnumber>
(this will temporarily set compression on your SSH connection)

To permanently setup SSH compression requires a little work on your remote server and your local computer. You will need to add a 'Compression yes' line in your /etc/ssh/sshd_config file on the remote server and a 'Compression yes' line in your local config file.  The local file should be located in either ~/.ssh/config if user configuration files are enabled, otherwise add the line to the system-wide config file located at /etc/ssh/ssh_config.

Here's a screenshot of my local machine.  I'm running Linux Mint

Here's a screenshot of my remote host:

I'll add to this blog post later with a few more of my favorite ssh tips/tricks to included Sshfs - mounting a remote file system via ssh which is handy for ...mounting a remote file system, and SSH Tunneling.  If you have any questions or comments please leave them below.

No comments:

Post a Comment