This is the command I always use:
$ cat .ssh/id_rsa.pub | ssh user@hostname "cat >> .ssh/authorized_keys2"
So I managed to upgrade my server from CentOS 5 to Ubuntu 11.10, here’s the uptime result before the upgrade:
[jerome@li10-25 ~]$ date Fri Dec 9 07:41:37 EST 2011
[jerome@li10-25 ~]$ uptime 07:41:39 up 529 days, 9:34, 1 user, load average: 0.00, 0.01, 0.00
529 days up and never had a problem. Linux power :D
Since Cygwin is using mintty, the default shell is bash. I found a way to use zsh by default. All you have to do is edit the Cygwin Terminal shortcut and replace target field.
From:
C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico -
To
C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico /bin/zsh --login