Sponsored Content
Full Discussion: Ssh logon delay
Operating Systems Linux Red Hat Ssh logon delay Post 302802531 by edstevens on Friday 3rd of May 2013 04:32:44 PM
Old 05-03-2013
Quote:
Originally Posted by hiten.r.chauhan
Make two modification:-
(1) comment everything in /etc/resolve.conf
Interesting. That change alone fixed it. So I tried copying resolv.conf from one of my OL 5.6 machines, but that did *NOT* fix it. And of course, that alone is not a viable solution because resolve.conf gets regenerated at every boot up.

Quote:
Originally Posted by hiten.r.chauhan
(2) Make UseDNS=no in /etc/sshd/sshd_config
I take it there is a typo there, as there is no file by that exact name:

HTML Code:
[root@vblnxsrv02 ~]# cd /etc
[root@vblnxsrv02 etc]# find . -name "ssh*config"
./ssh/ssh_config
./ssh/sshd_config
[root@vblnxsrv02 etc]# grep UseDNS ./ssh/ssh_config
[root@vblnxsrv02 etc]# grep UseDNS ./ssh/sshd_config
#UseDNS yes
So I went with the second, and made made this change:
HTML Code:
[root@vblnxsrv02 etc]# grep UseDNS ./ssh/sshd_config
UseDNS no
That worked *after* a reboot - which of course reset the resolv.conf. So either of the two is sufficient independent of the other, and of course the second (sshd_config) is the only one that is persistent.

Which then led me back to compare with my OL 5.6 installation. It had the same setting as we started with on the 6.3 :

Code:
[root@vblnxsrv03 etc]# grep DNS ./ssh/sshd_config
#UseDNS yes

So at this point I have a workable solution, but no explanation of why it is *different* on the 6.3 machine - why it *needs* to be different. I suspect the answer is in the output of the 'route -n' commands I posted earlier but I'm not enough of a net admin to understand what we're looking at there.


Quote:
Originally Posted by hiten.r.chauhan
If any of the ethernet adapter are configured to use DHCP, DNS, /etc/resolve.conf will be generated by Network Manager when you reboot the VM. In that case you need to comment everything in /etc/resolve.conf every time.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Can't logon

I stupidly changed the shell of the root user to one that does not exist, and now when I try to lgon it says it cannot find the path to my shell and will not let me proceed any further. Is there any way I can get round this without re-installing the OS? Thanks for any replies. (8 Replies)
Discussion started by: SRP
8 Replies

2. Shell Programming and Scripting

logon to ssh

Hi, I need to run a command remotely, rsh is disabled so I'm trying to do this: ssh myserver ls -lst /work/jsf The problem is that this prompts for a password and I want to do it in a shell script. How can I pass the password without user interaction? I tried "echo mypass | ssh_command" and... (1 Reply)
Discussion started by: rocky_triton
1 Replies

3. Shell Programming and Scripting

About Logon

hi how can I know abt the details of current user who are logged on and as well as those users who currently have an account but are not logged on? Thanks (1 Reply)
Discussion started by: nokia1100
1 Replies

4. Solaris

ssh logon

Hi I am envountring a problem while I login using ssh on a sun box to a remote box. I use ssh user@server and it takes long time to ask for a password.. does anyone knows the reason behind this? or is there a way that this could be solved Thanks, Antony (8 Replies)
Discussion started by: antointoronto
8 Replies

5. Linux

delay getting ssh login prompt

Hi, We currently have a problem on a centos server when i try to ssh to it there is a significant delay in getting a login prompt. What would be the steps in troubleshooting this issue? I have try to narrow down a possible network issue but cannot see anything obviously wrong in the routing table,... (4 Replies)
Discussion started by: borderblaster
4 Replies

6. Solaris

Delay after invalid SSH logon?

I am trying to configure a 4 second delay between failed login attempts on SSH. (1 Reply)
Discussion started by: LittleLebowski
1 Replies

7. Shell Programming and Scripting

Logon to multiple hosts using ssh hardcode password

Hi im trying to write a script to logon to list of servers with same userID. I have no option/plan to implement ssh-keygen sharing between the systems, so i have written script creating 2 files, file1 holds list of hosts host1 host2 host3 file2 has following script for i in `cat file1`... (1 Reply)
Discussion started by: dreamaix
1 Replies

8. SCO

Openserver 5.0.5 - logon delay

We have an OpenServer 5.0.5 system that has worked forever, but I'm hearing complaints of logon delays for users now. Normally they would telnet in and the logon screen would pop up, but now it sometimes takes a minute or more, and the user must hit the enter key to get it to appear. Everything... (11 Replies)
Discussion started by: citygov
11 Replies

9. Solaris

Solaris 9 - SSH 40 Second Delay

I'm having an issue with SSH on a server that hasn't had any configuration changes made on it in a long time. I SSH to the server and it hangs at "debug1: SSH2_MSG_KEXINIT sent" for exactly 40 seconds then connects fine after that pause. Everything I have found points to DNS, but I use host files... (19 Replies)
Discussion started by: kingdbag
19 Replies

10. Solaris

SSH and telnet long delay to recieve prompt.

Hi guys. You'd have to excuse me a bit, as I'm a noob. I really try to avoid asking questions and do research for whatever linux issues that may arise. I am experiencing a long wait for the shell to come up when I ssh or telnet into a Sunos 5.10 environment. It takes 70 seconds to give me... (12 Replies)
Discussion started by: gpenco
12 Replies
All times are GMT -4. The time now is 12:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy