Sometimes the ssh to remote server may take a long time to connect. This is because the ssh config tries to authenticate with GSSAPI which may be enabled in the server.
Doublecheck if that is the case using the -v option : ssh -v foo@bar.com
If you get this particular line on the screen,
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
where gssapi-with-mic is mentioned, then GSSAPI is enabled.
To reduce the time and workaround this problem, create a config file at ~/.ssh
(in your home folder). Call the file config
.
Add the following credentials.
Host (Put the name of the host here)
GSSAPIAuthentication no
PasswordAuthentication yes
ChallengeResponseAuthentication no
ForwardX11 yes
You should be sorted after this.
If you do get an error , your ssh may not have been compiled with GSSAPIAuthentication ( which is the case in Ubuntu 10.04) . Unless you want to recompile your ssh with extra options, you should be probably talking to the system admin of the server to disable the authentication or other workarounds.
Pingback: Reduce SSH connection time to remote servers « Linux News,Tips …
Pingback: Tip: Reducir el tiempo de conexion a los servidores SSH « Ubuntu Life
Pingback: Reduce SSH connection time to remote servers « Linux News,Tips … | SSH Hosting
nice post, will try it
Thank you very much for sharing this. Please keep up the good work.
Pingback: How To Fix- How to fix Error: Refreshing Data problem in Cydia using iFile or SSH
It’s Nice Post, keep posting and have a nice day… 10:38
Pingback: Whole Apple Media Group
Thank you very much my friend, you are very kind in sharing this useful information with? others…. The details were such a blessing, thanks.