Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2015-02-17
7
Medium Priority
?
410 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 2000 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month13 days, 7 hours left to enroll

963 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