Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old October 31st, 2005   #1
Jacky_J
5 Cups of Ubuntu
 
Join Date: Oct 2005
Beans: 28
HOWTO: Speed up SSH login

If you execute the command:

Code:
ssh username@hostname
and it takes a good 10-15 seconds to prompt you with a login/password, and you don't want it to take 10-15 seconds, then you've come to the right place.

You can blame IPv6 for this. Execute:

Code:
ssh -4 username@hostname
Note the -4 argument. This forces ssh to use only IPv4. If this doesn't speed it up, then you're probably out of luck.

Now, if you don't want to type -4 all the time (or are using CVS with ssh), edit your ssh_config file like so:

Code:
sudo gedit /etc/ssh/ssh_config
add the line
Code:
AddressFamily inet
Now you're set.

Last edited by Jacky_J; October 31st, 2005 at 03:26 PM..
Jacky_J is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:11 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry