Debian Configuration :: OpenSSH - Sshd Returns Login Prompt With Delay

Jul 11, 2011

On a Debian 5.0.8 I have a problem with OpenSSH server (sshd): when connecting to it from another host there is always a 10 seconds delay before sshd gives login prompt to the client. After the connection is established the communication goes on without any interruption. This long delay started to happen a few months ago and sshd_config was not changed at that time.

Here is a short description of the conversation between the putty client (on MS Windows) and sshd:
- putty client starts connection to sshd
- 10 s delay
- sshd returns "login as:"
- user types username in putty window
- sshd returns "password:"
- user types password in putty window
- sshd returns MotD and shell prompt

Here is a short description of the conversation between the OpenSSH client (on a Debian 6) and sshd:
- client does "ssh"
- 10 s delay
- sshd returns "Password:"
- user types password
- sshd returns MotD and shell prompt

I tried connecting from:
- local host - NO DELAY
- a host on the same subnet - delay exists
- a host on another subnet - delay exists

I've found the following suggestions but to no avail (of course I restarted sshd after changing its configuration):
- on server put "UseDNS no" at the end of /etc/ssh/sshd_config
- in /etc/hosts on the server define mappings between IP addresses and host names for the ssh clients
- on client use "GSSAPIAuthentication no" in /etc/ssh/ssh_config

Here are some logs and configurations:

View 5 Replies


General :: Eliminate Ssh Login Delay Without Touching Sshd?

Mar 11, 2011

Whenever I login to a certain server using SSH I get a very long delay before a prompt appears. Everything I looked up on this issue says that it's a DNS issue and that I should disable reverse DNS lookups on the server.

But, the remote server is a shared webhosting server. I e-mailed the sysadmins but they say they have no DNS issue and that they won't change the server configuration. So, how can I fix this issue from my side (client side)? I have a static IP address and a hostname that points to it.

View 2 Replies View Related

OpenSUSE Install :: Login At The Main Login In Prompt After Boot - Just Returns Back ?

Jan 6, 2010

When I try and login at the main login in prompt after boot, it just returns me back to the prompt again.

If I login as root it's fine...OpenSuse: 11.3 Kde: Latest

View 6 Replies View Related

Fedora :: Can't Login Into The Root Account: It Returns Me Immediately To The Login Prompt?

Jan 27, 2010

I just installed Fedora 12 on a laptop. I changed the default shell on the root account to /bin/tcsh and changed the runlevel to 3 and then rebooted. Now I can't login into the root account: it returns me immediately to the login prompt and I can't see any error message (the screen is cleared).Why is this happening?Can I boot into some sort of safe mode so I can undo my changes to the /etc/inittab and /etc/passwd file?I tried booting with a Live CD with the intention of mounting the filesystem and making the changes, but the new filesystem is a LVM and it won't let me mount it (or I don't know how to mount a Logical Volume).

View 3 Replies View Related

Debian Configuration :: Squeeze Backport Kernel 2.6.38 - Only A Console Login Prompt No GUI

May 22, 2011

I installed 2.6.38 from backports. It boots OK, and among the start-up messages it says it has started kdm, but then it offers only a console login prompt, no GUI. I assumed (perhaps optimistically?) that newer kernels would be backward-compatible, and that any dependencies on other software would be enforced by the package mechanisms. Running amd64, Squeeze, KDE.

View 6 Replies View Related

Debian :: SSH Password Prompt Delay In Lenny

Feb 22, 2010

Before upgrading to Lenny there was no noticeable delay between entering a username & the prompt for a password when logging in via ssh. Now there is about a 5-second delay which is rather annoying. There is no delay when logging in through the Gnome UI. Anyone know why the delay is there? Is it something about ssh under Lenny? Is there a setting that can be changed?

View 1 Replies View Related

Debian :: Systemd / Sshd And Login To Localhost

Sep 20, 2015

When i login on localhost with pubkey-auth, i get the following in my log

Code: Select allSep 20 12:42:27 aldebaran sshd[19745]: Accepted publickey for root from port 37520 ssh2: RSA 45:4e:27:4d:30:f5:3d:25:10:d0:92:88:53:77:1a:3b
Sep 20 12:42:27 aldebaran sshd[19745]: pam_unix(sshd:session): session opened for user root by (uid=0)
Sep 20 12:42:27 aldebaran systemd[19757]: pam_unix(systemd-user:session): session opened for user root by (uid=0)
Sep 20 12:42:27 aldebaran systemd-logind[585]: New session 70 of user root.
Sep 20 12:42:27 aldebaran systemd[19757]: Starting Paths.


View 1 Replies View Related

Debian Configuration :: OpenSSH Is Extremely Laggy?

Aug 27, 2010

I have an old computer a friend of mine found in a dumpster, and I've decided to use it as a file server. After finally getting it to connect to my wifi network, I tried connecting to it via OpenSSH on my main desktop. After I connected, I noticed OpenSSH was being very laggy. Whenever I type anything in there's a very noticable and annoying delay from when I type it to when it appears on screen. Now, a while ago a friend of mine was helping me fix my laptop when fglrx drivers broke x, and I set up openssh on there so he could access it. According to him, there was no lag (and he's half-way across the globe, whereas my file server is in the other room). The computer is an old Pentium 4 with one and a half gigs of RAM, two hard drives (one I use for the os/swapping and the other I use for /home). It's connected to wifi via a spare USB Linksys 802.11 bg adaptor I found lying around, and it's using the default drivers that come with Debian to connect.

View 3 Replies View Related

Debian Configuration :: PasswordAuthentication In Openssh And Freenx?

May 31, 2011

I have VNC working but I like how freenx starts in it's own session. It is handy for when my account is not logged into the server and VNC hasn't started.I have freenx working but it requires sshd_config to enable PasswordAuthentication. This isn't a major security problem at the moment since I have deny.hosts running but I still don't like it enabled. I would much rather only use the keys.

View 1 Replies View Related

Debian Configuration :: No Sshd On Startup (lenny)?

May 30, 2010

I tried recompiling a new kernel yesterday (2.6.34) on my debian sarge box, but I ran into multiple difficulties. These difficulties forced me to do a double dist-upgrade to lenny. The new kernel was (seemingly) compiled without any hiccups, and I ran dpkg -i on both the image and the header debs. They didn't install properly into grub, but I think I managed to fix that manually.Next thing I did was rebooting the server. It refused to come back up. Luckily my ISP has recovery tools, so I managed to switch back to the old kernel. It boots just fine with that kernel, but the problem is that there is no ssh daemon running! I can access it through ftp and do limited jobs through php, but nothing big, as I have no root access.Now, enough backstory. My question is: How can I install openssh-server onto the server remotely? I cannot access the server personally, as the server is in a completely different country.

View 14 Replies View Related

Debian Configuration :: Openssh-server Fails To Restart During Update?

Feb 12, 2010

So this very (for me) important little package fails me once again. But this time it refuses to restart/start

This is the output:

Setting up openssh-server (1:5.3p1:-1)
Restarting OpenBSD Secure Shell Server: sshd: failed!
/dev/null is not a character device!
invoke-rc.d: initscript ssh, action "restart" failed.


The error is within the /etc/init.d/ssh script. ("error")

This is in squeeze so I can only blame my self, but.. This is one of the packages that fair and square should not fail to install/update/start/restart no mather what!

View 9 Replies View Related

Debian :: Running Command After Delay (On Login)?

Mar 13, 2011

I want to run a command on startup (Via startup applications) that has to wait for another program to run first.I don't seem to be able to use sleep to delay the command as it is stored in a .desktop file.How do I make it run later, preferably without having to create a script just for this one command.Also, how do I make the system start with compiz? Change "/desktop/gnome/session/required_components/windowmanager" ? Or do it the clean way by (Somehow) configuring gnome to use compiz?

View 3 Replies View Related

Debian Multimedia :: Xdm Long Delay Before Login

Jan 26, 2016

Im experiencing a long delay before the gdm login screen appears in debian jessie with kernel 4.4 and also with the distro kernel 3.16

there in the Xorg.log
Code: Select allX.Org X Server 1.16.4
Release Date: 2014-12-20
[    22.516] X Protocol Version 11, Revision 0
[    22.516] Build Operating System: Linux 3.16.0-4-amd64 x86_64 Debian


they claim to have fixed the issue after kernel 3.4 so i must have some missconfiguration causing this loop.

View 2 Replies View Related

Debian Configuration :: Railo Cfm Pages Returns 404 Error

May 21, 2011

I have a new Debian Linux 6.0 server installed, running Linux on i686. It has apache2 on front.

The master plan was to run Railo on this one, so I can continue my mad Coldfusion schemes to rule the world, so got the tomcat set up with it, as instructed by some guy I met on a chat. He seemed very reliable.

I got the whole thing working, can view my regular html files and whatnot, but as soon as I try to run a cfm file,

I get an error message on screen:

I have no idea whatsoever what to do next. This is my site with the html file:[url] and here is my test index.cfm file:[url]

View 1 Replies View Related

Debian :: Openssh-server Auto Configuration Fails When Upgrading Lenny To Squeeze?

Sep 10, 2010

I'm in need of a bit of assistance from you Debian users. I have two servers that I thought were identical installations, both running Debian Lenny. Tonight I started the upgrade to Squeeze on both servers and one of them went smooth. The other one started out good but fails on the postconfiguration of openssh-server. I'm getting the following message:

Setting up openssh-server (1:5.5p1-4) ...
Auto configuration failed
2524:error:0E079065:configuration file routines:DEF_LOAD_BIO:missing equal sign:conf_def.c:366:line 67
invoke-rc.d: initscript ssh, action "restart" failed.


It looks like there's an error in one of the files in openssh-server that prohibits it from installing correctly. However on the other server it all went well.

View 3 Replies View Related

Debian Configuration :: Server Services Delay After Wakeup From Suspend

Oct 4, 2015

I'm trying to lower consumption of my server/HTPC. After wakeup from pm-suspend server/HTPC is ready to use in 1 or 2 seconds .For example if I suspend it while watching movie in KODI, after resume movie starts playing instantly. But some services (SSH and SAMBA) are not running. I thought it was network problem so I change configuration to static (not DHCP). SAMBA and SSH starts like 15 seconds after wakeup.

View 0 Replies View Related

Debian Configuration :: CIFS Mount Causes 90-sec Timeout Delay During Shutdown

Nov 17, 2015

I'm using Debian 8.2 from a very recent download of the latest NetInst (less than 2 weeks). I'm sort of new to Linux - More accurately, I've used Unix and Linux extensively in the past, so most of my knowledge is dated. In particular, the whole systemd / systemctl paradigm is completely new to me.

Problem: I've added an entry to /etc/fstab to mount a NAS drive as CIFS. When I do a system shutdown or reboot, the system hangs for 90 seconds trying to unmount the NAS. If I manually umount the NAS prior to shutdown / reboot everything works fine.

I've done a fair amount of investigation and web searches, but haven't found a fix yet. Apparently several people were encountering similar problems about a year back, and it seems pretty clear that the root cause what ordering of steps in the shutdown process, e.g., WLAN being turned off before unmounting filesystems. This seems to have been resolved for most users (no one is discussing it any more), but I'm now running into the same issue. Ugh.

I tried to add a shell script to /etc/rc0.d to umount the NAS first in the shutdown process. This had no effect. I assume this is because the new systemd / systemctl paradigm supplants the old /etc/rc model of runlevel control, though it is rather baffling (to me, at least) as to why /etc/rc* still exists if the system is no longer using it...?

Here's some things I'd like to try, but how to proceed:

1. In the new systemd / systemctl paradigm, how do I examine and change the ordering of steps in the shutdown process? I've seen a lot of documentation on systemd, but nothing tells me how to do what I used to be able to do with /etc/rc with a simple rename of a symlink. If I knew how to look at the order of shutdown and change that ordering, I'm fairly certain I could identify and resolve this issue.

2. Is there some other way to mount my CIFS NAS other than editing /etc/fstab? Is it possible that my manual edit to /etc/fstab is the cause of this issue? My research into systemd indicates that it IS supposed to be compatible with /etc/fstab. I have not yet found documentation describing how to mount a filesystem at boot WITHOUT editing /etc/fstab ...

View 8 Replies View Related

Debian Configuration :: Long Delay In Accessing SAMBA Shares

Jan 27, 2016

When I boot up, or come out of standby, etc, it takes about a minute for my Windows shares on Win 7 to show up under Network. Is there anything I can try that will make this initial connection faster? Either on Debian or the Win7 machine? I have the latest Debian vanilla. This is over wifi. My other devices list the shares right away.

View 1 Replies View Related

Slackware :: Delay SSH Prompt After Bad Password?

May 14, 2010

delay the retry response from SSH (for, say, 10, 20 or 30 seconds) when a bad password is tried by a whacker? I mean, when I'm getting hit by 10 or more break-in attempts, is there some way to make SSH delay the next try from the site that's trying?I seem to remember something about this but haven't been able to find it and, so far, reading the SSH documentation hasn't been

I have DenyHosts running (that puts entries in /etc/hosts.deny after a few tries to break in) and I completely block China, Korea and a few others that are a constant annoyance with IPTABLES but I do get hit pretty much every day and would like to discourage the bastards as much as possible (the hits are a second or so apart which tells me they're automated and I figure delaying the response will discourage 'em).For example, here's the overnight entries from /var/log/messages (the "refused connect" are from /etc/hosts.deny entries generated by DenyHosts):

May 13 03:49:50 fubar sshd[30255]: refused connect from (
May 13 03:51:27 fubar sshd[30256]: refused connect from (


View 12 Replies View Related

Debian :: No Login Prompt On Tty0?

Jan 26, 2010

After a recent kernel update, I no longer get a login prompt on the first tty after booting. I can get to one in the second tty, and on the first one after hitting Ctrl+Alt+F1 to go back.

View 4 Replies View Related

Debian :: Only Login Prompt After Nvidia-xconfig

Sep 29, 2015

Tried to install nvidia driver and package, nvidia-glx, nvidia-kernel-dkms and nvidia-settings installed.

When trying to install nvidia-xconfig i have: error, not found.

Now I have only login prompt, no GUI, have tried to search, but have no clue.

View 10 Replies View Related

Debian Configuration :: Sshd Service Never "really" Starts On System Boot

Dec 3, 2010

I'm not really sure what the problem is here, but sshd does seem to start on system boot. tty1 does list "OpenBSD Secure Shell server" at least. Also, # service --status-all; indicates that sshd is running, but if I try and actually ssh into my box, I get a "Connection refused" response.

I am, however able to restart the service manually and everything magically works again. Odd...?

View 1 Replies View Related

OpenSUSE Install :: Login At KDM (KDE4), The Monitor Goes Black And Returns To The Login Screen?

Nov 17, 2009

My OpenSUSE 11.2 is working fine as samba server, no problems, but I have a problem with KDM.My default init runlevel is set to 5 and every time I try to login at KDM (KDE4), the monitor goes black and returns to the login screen.If I hit Ctrl+Alt+F1 to go to console and start /usr/sbin/console-kit-daemon manually, press Ctrl+Alt+F7 to return to KDM login, everything is fine.What do I have to do to fix this issue?

View 5 Replies View Related

Debian Configuration :: Cannot Change Prompt In Squeeze

Dec 3, 2010

I looked into my shell 'profile' on my running lenny and copied the PS1 definition over to my [virtual] new squeeze machine, but astoundingly, the prompt does not change!

The prompt always remains to be like this:${debian_chroot:+($debian_chroot)}u@h:w$

This does definitively not stem from 'profile' and I cannot find, where it is defined and how I can override this. If I do it interactively, in a terminal [terminal running in Gnome], it works like expected. In that script, even if I use 'unset PS1',followed by PS1= ... / export PS1, it does not change,Someone with the knowledge and/or a good idea would be great!

View 8 Replies View Related

Debian Configuration :: No Prompt For Passphrase For Decrypt Luks During Boot

Jan 25, 2016

I'dont get prompt for passphrase for decrypt luks during boot.Instead it says 'error: device name required, press any key to continue"

kernel: linux-image-4.3.0-1-amd64
video with issue:
VM disk has 2 partitions:
sda1 with /boot
sda2 - luks encrypted

View 1 Replies View Related

Debian Configuration :: Change Prompt Color In Bash Shell?

Jan 13, 2010

I am getting more and more comfortable working with the shell, thus I would like to change its prompt color to my liking, as it will be easier for me to distinguish commands vs. outputs.

I've read a couple of instructions of how to change the .bashrc file and am familiar with what the codes in PS1 mean. Except, this file can be intimidating to newbie eyes.

Where exactly on the file is it that I need to make the change?

Here is what I am trying to do. I would like my prompt to like exactly like the prompt I use in Backtrack - which consist in two different colors, one for the host and another for the pwd. Here is what the Backtrack .bashrc file looks like:

# /etc/profile: This file contains system-wide defaults used by
# all Bourne (and related) shells.
# Set the values for some environment variables:
export MINICOM="-c on"
export MANPATH=/usr/local/man:/usr/man:/usr/X11R6/man:/usr/local/share/man:/usr/bin/man:/usr/share/man
export HOSTNAME="`cat /etc/HOSTNAME`"


I also read that in order to have the same results when I log in as root, I will have to copy the modified .bashrc file into /root

View 8 Replies View Related

Debian Configuration :: Massive Delay Between Pings Yet Pings Fine

Aug 16, 2010

I have just installed a testing net install of squeeze on my laptop and I'm having a few problems with my wired connection.

When i try to ping there is a large delay between each result even through the actual ping takes ~30ms. It takes about 5 seconds or more between each ping.

If i use ping -n it works fine. Does anyone know why this is happening?

View 3 Replies View Related

Ubuntu :: OpenSSH Does Not Seem To Respond To Configuration

Jan 7, 2011

I just setup Ubuntu 10.04, and immediately installed OpenSSH using synaptic. I edited the /etc/ssh/sshd_config file e.g. no password authentication, non-standard port, etc. Using /etc/init.d/ssh restart I restarted the daemon, and everything worked perfectly. However, now it's almost like there is a lock on my service somehow. I edited the config file and added "PrintMotd no" and "Banner none". I killed all my active ssh sessions, restarted, and still saw the motd and the banner.

I then tried sudo /etc/init.d/ssh stop. The script reported ok, but netstat reported sshd as still listening on the port I had defined. I could still login. At this point, I don't know what else to do. I have tried looking at auth.log, I don't see anything funny there. I tried rebooting, and the config changes are (apparently) not loaded, I still see the motd upon ssh login. This is a totally clean system so I don't know what I am doing improperly.

View 7 Replies View Related

General :: Openssh Auto Login Is Not Working?

May 20, 2011

I am using Debian 6.0 and I am trying to auto login into Debian 4.0. I generated rsa keys with ssh-keygen on Debian 6.0 and I copied id_rsa on Debian 4.0 in /root/.ssh/authorized_keys. When I tried to ssh from Debian 6.0, ssh is giving the following error and asking for password. how can I solve the problem to perform autologin?

Error: Agent admitted failure to sign using the key.

View 1 Replies View Related

Networking :: User Can't Remote Login - Openssh

Jan 11, 2010

F12 64bit
Debian 5.0 64bit

Both openssh-server and open-clients are running on 2 boxes. On F12 it is named openssh-clients but on Debian 5.0 openssh-client without "s".

1)As root both boxes can connect remotely another box.

2)As user both boxes can't connect remotely another box.

View 2 Replies View Related

Copyrights 2005-15, All rights reserved