Home > unix > Useful ssh settings

Useful ssh settings

The control path settings will let you multiplex one ssh connection for multiple ssh sessions. Practically this means that you can ssh to a box, and scp will not ask you for a password when you copy a file to or from that box. Also, it’s useful for tab completion over the network.

Add this to your ~/.ssh/config file:

Compression yes

Host 192.168.*.*
        ControlPath ~/.ssh/master-%r@%h:%p
        ControlMaster auto
        ServerAliveInterval 30
        HashKnownHosts no

Host *
        ControlPath ~/.ssh/master-%r@%h:%p
        ControlMaster auto
        ServerAliveInterval 30
Advertisement
Categories: unix Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.