Solved

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

Posted on 2015-02-17
7
336 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
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!

 

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

730 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