Re: 請問 ssh port setting
發表於 :
週五 1月 15, 2010 5:36 pm
由 jojoyakira
寫成bash檔就可以了啊!我都是寫成bash scripts儲存在~/下,然後./login_others.sh和./copy_to_others.sh執行,很方便的。
Re: 請問 ssh port setting
發表於 :
週六 1月 16, 2010 3:55 pm
由 Jackie
等等
ssh_config(~/.ssh/config 和 /etc/ssh/ssh_config)可以針對個別host作設定喔
man ssh_config
然後看"Host"這個項目的說明
而且就算ssh_config沒有支援
也可以在shell自定義一個叫做ssh的function來自動加上-p port