2009年4月23日 星期四

SSH shortcut


(參考來源)通過設定 ~/.ssh/config 可以在指令中少打很多東西:
~/.ssh/config

Host lt HostName example.com User user 之後以指令 $ ssh lt 即等於 ssh user@example.com,並且可以在 scp 中生效:##ReadMore## $ scp file lt:hello/there 等於 scp file user@example.com:hello/there

另外,再配合 ssh no password login 就更加完美,免除掉大部份煩人的打字過程,可喜可賀。

沒有留言:

張貼留言