Solved

Managing SSH connection close timeout after password prompt and eliminating initial password prompt delay.

Posted on 2015-02-17
7
322 Views
Last Modified: 2015-02-21
I want to connect  to remote host using
ssh XXX.XXX.XXX.XXX -l root -p XXXX

It's takes 30 seconds to prompt password in Ubuntu (as an opposite, putty client almost immediately asks password), how to eliminate initial password prompt delay?
Also, after  password promopt, it waits only 30 seconds for input, then saying connection close. How to make it 1 hour?

If you unite this two behaviours, you will decide that it's pretty much unefficient. because I must stare for 30 seconds at console.
0
Comment
Question by:Nusrat Nuriyev
  • 5
  • 2
7 Comments
 
LVL 25

Assisted Solution

by:Zephyr ICT
Zephyr ICT earned 500 total points
ID: 40614543
It could be several things client or server, you'll need to check both..

What happens sometimes is that reverse DNS is not working like it should, you could try by turning DNS requirement off in the ssh config file by adding "UseDNS no" to /etc/ssh/sshd_config

Another thing that sometimes solves these issues is by turning off GSSAPI authentication by adding the line "GSSAPIAuthentication no" to /etc/ssh/ssh_config or maybe on the client side, then it will go into  ~/.ssh/config probably.
0
 

Author Comment

by:Nusrat Nuriyev
ID: 40616732
well, there is no delay before password prompt on other MAC client, I have noticed.
0
 

Author Comment

by:Nusrat Nuriyev
ID: 40616746
GSSAPIAuthentication no on server side helped for eliminate delay BEFORE prompt.
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

Author Comment

by:Nusrat Nuriyev
ID: 40616756
Also, calling command
ssh hostname.domain -l root -p 9333

Open in new window

helped with eliminating delay BEFORE password prompt.
0
 

Author Comment

by:Nusrat Nuriyev
ID: 40616767
connection closed by XXX.XXX.XXX.XXX
AFTER password prompt still persists. How to increase wait time after password prompt?
0
 

Author Comment

by:Nusrat Nuriyev
ID: 40616779
callling
ssh hostname.domain -l root -p XXXX

Open in new window

has not helped in eliminating delay BEFORE. Unconfirmed.
0
 
LVL 25

Accepted Solution

by:
Zephyr ICT earned 500 total points
ID: 40617567
You could try setting the "LoginGraceTime" to 0 (zero) in the ssh config file on the server, or to a more specific number of minutes, like you want ...
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
add some character at the end of line in vi 7 80
is my large folder zipped corrupted 4 67
Linux haproxy: stop temporary haproxy service 9 44
android secure ftp 3 38
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
We all know how boring and exhausting it is to transfer huge web projects developed locally to a webserver simply via FTP. The File Transfer Protocol is a really nice solution if you need to transfer small amounts of files, but if you're plannin…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question