SSHing Hosts with Different Usernames
Posted on September 28th, 2006 at 20:43 by fr3@K

應該有不少人跟我一樣, 有好幾個在不同的地方 shell 帳號. 有自己的機器上的, 有公司的, 有花錢租的 virtual host, 有參加 FOSS 相關計畫用的. 這些帳號 (login name) 常不一樣.

當我在這些機器上 ssh 過來 ssh 過去的時候, 常得多敲好幾個鍵, 把 login name 餵給 ssh. 今天被這事情搞煩了, 認真把 ssh_config 的 man page 看了, 產出就是 ~/.ssh/config:


# Office
Host office-domain.name *.office-domain.name 192.168.* some-office-machine-name
    User login-name-at-office

# Some project
Host shell.foss-project.org
    User another-login-name

del.icio.us:SSHing Hosts with Different Usernames digg:SSHing Hosts with Different Usernames spurl:SSHing Hosts with Different Usernames newsvine:SSHing Hosts with Different Usernames furl:SSHing Hosts with Different Usernames Y!:SSHing Hosts with Different Usernames 黑米共享書籤:SSHing Hosts with Different Usernames 推推王:SSHing Hosts with Different Usernames
Previous Post
« XIM on Deskbar Applet, but it’s really SCIM «
Next Post
» Boost.Lambda »

Zero Comments »

No comments yet.

Comments RSS TrackBack URI

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>