[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
Gentoo Taiwan 討論區 • 檢視主題 - 請問 ssh port setting

請問 ssh port setting

瞎密!!上面不是我的家!!來吧這邊可以收留你!!!

版主: Forums Team

請問 ssh port setting

文章samuel » 週五 1月 15, 2010 3:34 pm

samuel
 
文章: 43
註冊時間: 週五 3月 14, 2008 1:51 am

Re: 請問 ssh port setting

文章jojoyakira » 週五 1月 15, 2010 5:36 pm

寫成bash檔就可以了啊!我都是寫成bash scripts儲存在~/下,然後./login_others.sh和./copy_to_others.sh執行,很方便的。 :D
Desktop:Intel Pentium(R) Dual-Core CPU E5300 @ 2.60GHz,OS: Gentoo GNU/Linux
jojoyakira
 
文章: 284
註冊時間: 週四 3月 01, 2007 10:42 pm
來自: kaohsiung

Re: 請問 ssh port setting

文章samuel » 週五 1月 15, 2010 8:13 pm

謝謝你的經驗分享
這個點子還不錯 XD
samuel
 
文章: 43
註冊時間: 週五 3月 14, 2008 1:51 am

Re: 請問 ssh port setting

文章Jackie » 週六 1月 16, 2010 3:55 pm

等等
ssh_config(~/.ssh/config 和 /etc/ssh/ssh_config)可以針對個別host作設定喔

man ssh_config
然後看"Host"這個項目的說明

而且就算ssh_config沒有支援
也可以在shell自定義一個叫做ssh的function來自動加上-p port
Jackie
 
文章: 137
註冊時間: 週六 7月 08, 2006 10:13 pm

Re: 請問 ssh port setting

文章samuel » 週六 1月 16, 2010 4:28 pm

samuel
 
文章: 43
註冊時間: 週五 3月 14, 2008 1:51 am


回到 Other Things Gentoo

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 9 位訪客

cron