14 ms·
If you have a mac (Yosemite), it looks like you want to add " UseRoaming no" under the "Host *" line in /etc/ssh_config (as root). You can test it before and
by nulltype 11y ago
If you have a mac (Yosemite), it looks like you want to add " UseRoaming no" under the "Host *" line in /etc/ssh_config (as root). You can test it before and after with this:
ssh -v -T git@github.com 2>&1 | grep Roaming
debug1: Roaming not allowed by server <- bad
ssh -v -T git@github.com 2>&1 | grep Roaming
(no output is good)
- super_mario 11y agoOn El Capitan the file is /etc/ssh/ssh_config
- snowwrestler 11y agoOn Mountain Lion it's /private/etc/ssh_config.
- astrange 11y ago/etc points to /private/etc on OS X, so it's all good.
- deleted 11y ago[deleted]
- lftl 11y agoInterestingly I haven't been able to get the Roaming not allowed message to show on my client with or without the config option set.
- antoinealb 11y agoDid you copy the whole line as "g ssh -v -T git@github.com 2>&1 | grep "Roaming debug1: Roaming not allowed by server"" ? I misread GP's command and made that mistake. The correct command is : ssh -v -T git@github.com 2>&1 | grep "Roaming"
- metavida 11y agoA few of my friends found multiple copies of ssh_config lying around, so I wrote this one-liner that looks at 3 separate known ssh_config files & patches any vulnerable ones that it finds. $ for SSH_CONF in /etc/ssh/ssh_config /etc/ssh_config /private/etc/ssh_config; do [ -f $SSH_CONF ] && ! grep -q 'UseRoaming no' $SSH_CONF && echo "Patching $SSH_CONF" && echo -e '\nHost *\n UseRoaming no' | sudo tee -a $SSH_CONF > /dev/null; done
- noterminal 11y agoHere is a user-friendly script that will disable UseRoaming on your os x computer. If you want to send this out to your coworkers, remind them that they have to right-click and choose open to execute a .command script (unless they have "allow apps downloaded from anywhere" enabled) https://gist.github.com/logicalmethods/49f42190406667cbbbee https://gist.github.com/logicalmethods/49f42190406667cbbbee