I have migrate my blog to new blog. Click the link below to redirect.
http://edisonthk.wordpress.com/2014/04/21/setup-egit-for-eclipse-adt-by-install-new-software/
2014年4月21日月曜日
2014年4月16日水曜日
Login ssh to server without including username
Let's say you want to login to ssh in very short command. For instance,
And save it. No restart is required, just try ssh myserver, and you are login as myuser@myserverdomain.com
ssh myserver
How to do it?
No configuration on server, just do some configuration on client side.
On client side terminal, open ssh config file. If it doesn't exists, create a new one.
nano ~/.ssh/config
Then, type in following.
host myserver hostname myserverdomain.com user myuser
And save it. No restart is required, just try ssh myserver, and you are login as myuser@myserverdomain.com
登録:
投稿 (Atom)