Apple’s 10.7 Lion, is NOT my favorite iteration of MacOSX. They continue to make the OS more Windows-like, which means they have started down that slippery slope… In Snow Leopard, I could have my ssh sessions running for weeks. In Lion, the ssh sessions time out with nasty errors, including “Write failed: Broken pipe”. After […]
erics@zeus:/Users/erics # ssh -i foo.pem ec2-user@thehost.foo Last login: Tue Nov 19 20:28:19 2013 from foo.bar __| __|_ ) _| ( / Amazon Linux AMI ___|\___|___| https://aws.amazon.com/amazon-linux-ami/2013.09-release-notes/ No packages needed for security; 7 packages available Run “sudo yum update” to apply all updates. [ec2-user@xyz ~]$ sudo su […]
Simply specify one or more ListenAddress directives… Edit “/etc/ssh/sshd_config” and add one line per desired IP address: [code] ListenAddress 10.1.1.7 ListenAddress 172.16.1.82 ListenAddress 192.168.1.146 [/code] Then run “/etc/rc.d/sshd restart”.
Extremely simple way to set the date and time the same as another server: (Requires SSH access to the server that has the time you want to copy; does NOT have to be root access) [code]root@host# date ssh user@timehost date "+%Y%m%d%H%M.%S"[/code]
I had some odd issues with slow login via ssh to my host. I looked in Console.app, but was not able to find anything relevant. So here is what I did: 1. System Preferences -> Sharing, Unchecked “Remote Login” 2. In Terminal, as root, ran /usr/sbin/sshd -ddd -e (3 d’s for debug level 3, -e […]