Re:SSH Tricks
by qzervaas on Tuesday July 01, 2014 @07:49PM
(#7974228)
I have the following in my ~/.ssh/config, which for those who don't know, maintains the connection even after you disconnect so you can reconnect really quickly:
Having said that, sometimes I need to remove the entry from /tmp to reconnect if my network settings have changed.
[ Parent
| on HN ]
Re:SSH Tricks
by stock_toaster on Tuesday July 01, 2014 @08:50PM
(#7974453)
> Having said that, sometimes I need to remove the entry
> from /tmp to reconnect if my network settings have changed.
You can also just send the exit command to the conn. ssh somehost -O exit
In addition, I put my controlpath in my .ssh dir. Keeps it out of the global /tmp dir. shrug controlpath ~/.ssh/cp-%r:%h:%pHave you used ControlPath with a very long hostname? I haven't worked out how to stop one of my IPv6 hosts failing with that setup - the DNS RR is really long (causes problems with IRC, too!)
Re:SSH Tricks
by stock_toaster on Tuesday July 01, 2014 @10:52PM
(#7974863)
Hmm. I have one control file with 44 chars in it. That is probably the longest one I have hit. You could always give it a dns cname alias or something.