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.
I got a TP-Link WN951N Wireless-N PCI card for my Squeeze HTPC (this is AR5008. Performance is awful. On the lucky runs I'm getting 4 MB/s from Samba, most of the times I'm seeing 1-2 MB/s, and sometimes less than 1 MB/s. Also, ssh is not smooth, e.g. when I type commands, it can take seconds before text appears on the console, or I get slo-mo. Forcing 11g gets me a consistent 2.2 MB/s but lag is still there.
The machine has also been tested under XP SP3 and pulled off a solid 11 MB/s on a large file with no lag, so the hardware would seem OK. I've tried several kernel versions (both Liquorix and Debian stock), and a couple versions of compat-wireless (2.6.38-rc4 and 2011/03/03 bleeding edge), with little variation in outcomes. The logs got no weird messages in them, although with the more recent drivers/kernels iwconfig looks like this:
wlan0 IEEE 802.11bgn ESSID:"GuessIt" Mode:Managed Frequency:2.457 GHz Access Point: x:y:z:t:u:w Bit Rate=270 Mb/s Tx-Power=19 dBm Retry long limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality=46/70 Signal level=-64 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:64 Invalid misc:19967 Missed beacon:0
Tx discarded packets are through the roof and excessive retries is not bad either. The system doesn't run NetworkManager, wicd or whatnot. All of the wireless is configured through /etc/network/interfaces: # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback
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.
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.
[Code].....
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!
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 user@host.foo.bar" - 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
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:
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.
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.
1. When I'm not logged into the server, only the shares are visible on my Windows computer. Clicking on the share folder displays an error message. As soon as I log in at the server, the files within the shares become accessible on the Windows box.
2. File transfers between the machines are extremely slow. Watching the system monitor, there's a brief burst of network activity followed by 10-30 seconds of nothing...on a gigabit network, the effective transfer rate is ~120kbs. There's no other network activity going on that would account for this behavior.
When I connect with my vps server through openssh, doesn't establish connection. Openssh is active (see its status), port 22 is open, the sshd_config file is the same of original copy (I have saved one in the case I did a mistake) the only line different permitrootpassword is set on ''no'', there isn't a firewall that block ssh connection and with other remote desktop control like remmina works well.
I would like to recompile the openssh-server with a different version string. I download and compile the source, but so far I have only been able to compile and run the client. Not the server.
Steps taken:
Is there a flag or option I need to specify to insure that it creates the sshd?
Is there a way to enable a web interface to access openssh-server on my vps incase i'm on a network that does not permit outbound port tcp 22 or any other port of my choosing?
is there a way to enable a web interface to access openssh-server on my vps incase i'm on a network that does not permit outbound port tcp 22 or any other port of my choosing?
I am having a problem with my audio chipset. I have a Gigabyte MA770-UD3 motherboard with the ALC888 audio chipset. Any audio that plays is extremely low. I have to turn my speakers all the way up to hear anything at a decent level. I tried using alsaconf but command not found.
I finally got around to upgrading from etch to lenny. After having upgraded, I find that the fonts are extremely small in all gtk applications (iceweasel, abiword, gnumeric, etc.)
Everything looked fine before the upgrade, but now the application fonts in the menu bars, dialogs, etc. are so small as to be unreadable. Also, when I open up gnumeric spreadsheets the fonts in the cells are unreadable. All my X-based applications (rxvt, xfig, xmms, etc.) look just fine, it's just the GTK apps that have the font problems.
Interestingly, web pages themselves render just fine in iceweasel. Also, abiword documents look fine even though the menus, dialogs, etc. are too small to read.
I was able to get a workaround for the application fonts. I put the following in ~/.gtkrc-2.0 code...
At 24 point the fonts are still a bit on the small side, though. And I still have problems reading information in the gnumeric cells.
I use the fvwm window manager without gnome or kde.
I've had this odd, stubborn problem that seems to be related to the nouveau video driver and certain kernel builds: opening or saving full resolution jpeg image files using GIMP takes from 1-5 minutes and causes xorg CPU usage to reach almost 100%.This also occurs when using UFRaw to open Canon raw image files. The problem is not intermittent, it happens each time I open a file. Opening photos in the default image viewer works fine.This bug has vexed me on and off for the last couple of months, and seems to be triggered by a combination of kernel version and the Nouveau driver. I switched to Debian Squeeze from Ubuntu 10.04 because I was experiencing slow image open times in Ubuntu 10.04 (using the Nouveau driver).I did not experience the bug running Squeeze with the nv driver and kernel 2.6.32-3.
I did not have the bug running Squeeze with the nouveau driver and kernel 2.6.32-5 backported from Sid.I began experiencing the bug again after the Squeeze updates on June 14th (still running nouveau and kernel 2.6.32-5). I update daily so it's likely to be that day's updates which caused the bug to reappear.Just for grins, I installed the Liquorix kernel. The bug does not occur using kernel 2.6.34-0.dmz.10-liquorix-686 and the nouveau video driver.I have a Nvidia FX5500 video card. I prefer the nouveau driver to nv as my display seems to behave better. The Nvidia proprietary drivers are not an option because they produce X freezes when I am doing photo editing. The liquorix kernel seems to be working fine, but for long-term stability I'd rather be running a mainline Debian kernel.
Same computer and flash. Two results on different OS:
Write speed under debian: 0.4 MB/s Write speed under Windows: 6.6 MB/s
From what i've been reading on the net I guess it's something to do with the mount - sync option. I've notice that there are couple of workarounds but all of them are pretty tedious.
Is there any simple (GUI - one/two clicks) tool that allow to mount/unmount flash disk easily using the correct options?
I'm using Squeeze 6.0.2 (Kernel 2.6.32-5-amd64), gnome 2.30.2
I've mounted a kind of proxy to map some cifs folders, 150 aprox. It umounts and mounts everything each hour, to check on changes on a configfile managed by a secretary, she just edits a file with names and I prepared a cron to notice the new mountpoints. It's a debian, no desktop , no nothing else. Just mount.cifs and apache2 to let the master webpage access to some files on each user samba home. The server has 4 cores and 2Gb of RAM. It's brand new, but it goes very slow.
[Code]....
Does anyone have an idea why is that working so slow? The apache is working well, it's the shell which is working extremelly slow.
Using the codecs from RPM fusion and tried to play 720p MKV files and it was extremely choppy and lots of artifacting, while my computer IS rather outdated and there was slight lag once in a while when I used Ubuntu it was never this bad and the videos were watchable, which these are not. Also, yes I am using the official Nvidia drivers and it does this regardless of what program I am using to watch them.
Ever since I installed 10.04 my window resizing has been incredibly slow. The type or resizing I mean is when you grab the bottom-right corner or one of the sides. I used to use 9.04 a while back and never had this issue. I have an nVidia 8400. My monitor is a Dell 22" widescreen at 1680x1050 resolution and 60hz. I do not have any visual effects turned on.
Here is my xorg.conf: Code: # nvidia-xconfig: X configuration file generated by nvidia-xconfig # nvidia-xconfig: version 1.0 (buildmeister@builder75) Sun Nov 8 21:50:38 PST 2009 Section "ServerLayout" Identifier "Layout0" Screen 0 "Screen0" InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" EndSection .....
So I recently installed Ubuntu 10.04 on my 800 MHz iBook G4 with a Radeon 9200. After messing around with the xorg file, I was able to get compiz working well - but now the only problem I'm having is that scrolling in any window is ridiculously choppy - comparable to scrolling a window of a computer over remote desktop.
When i try to record with my dvc100 on Ubuntu the only thing that i found works is vlc but that doesn't even work properly. i found out that vlc-plugin-pulse is flickering on and off can i either replace or fix this.
I have two Debian 5 servers which running on both the same version of OpenSSH (5.1p1) and OpenSSL (0.9.8g).
One week ago, I set ssh keys on both of them and create the file "authorized_keys". I was able to connect on each server via SSH without password (which is the purpose of ssh keys) but I had an issue with the SSH service and I had to restart one of my server. And since this time, when I try to connect to my other server with the same ssh command, the command ask me to type the password...
This is the result of the ssh command (with the argument -v):
Code: OpenSSH_5.1p1 Debian-5, OpenSSL 0.9.8g 19 Oct 2007 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to MY_SERVER [1.2.3.4] port 22. debug1: Connection established.
I ve upgraded my system from F11 to F12 recently . Everything went good till now. Yesterday i ve tried to check if there was any update via software update and a very very bad thing happened without me knowing it updated to all dev-test packages of F13.
Is there any way of uninstalling-removing everything thats connected with F13 from my system cause now all is going very slow and laggy probably bugfull. Also my software sources tab has vanished from menu...i ve tried to edit the menu to see if i can add it back but no luck its not there also....i can enter it only via terminal.
I have three different webcams. All Logitech. Two are "cheapo" ones, and one is a more expensive, HD one. I'm running the stock Maverick desktop install, with no specifical extras for the video or the like. I plug in the webcam (doesn't matter which one I use) and it is picked up and can be used. Not a problem, but when I view the feed, the its laggy and choppy. If I plug in the cam onto my Windows XP or Window 7 installs (on the same laptop), the feed is smooth and has no issues. So I figure it has to be something to do with my settings or configurations. Problem is, I can't seem to find out what I need to tweak to smoothen or improve the feed. I've tried reducing the resolution of the feed to the minimum, but that hasn't helped.
Just to give you an idea of what I'm talking about. If I film myself typing at my laptop keyboard, I can see my hands move around the keyboard when I view the footage in Windows, but when I film it in Ubuntu, it's very jumpy, and my hands seem to jump about all over the keyboard -- almost as if something can't keep up.
I currently have my monitors set up as an extended desktop using Nividia's Xinerama function. Everything works sweet, except it's acting slow and lags out. It all works out fine when Xinerama is disabled. At the moment, I'm using CentOS with Gnome, but I've tried other distributions with the same outcome. If I can't a fix I'm going back to windblows.
I'm experiencing really choppy flash video playback with my newly installed ubuntu netbook remix. I tried reinstalling flash 10; no luck. Has anyone experienced this, or does anyone have any fixes?