ssh is very slow since ubuntu feisty
Hello
I use ssh to connect to my accounts in dreamhost.com and rsync.net.
Since I upgraded to ubuntu feisty ssh is very slow, and many times it even doesn't connect at all.
I use rsync.net for backups and now I cannot do these backups, which are important .... :(
Do you have any ideas of how to solve this problem?
thanks
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu openssh Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Pere Quintana Seguí
- Solved:
- Last query:
- Last reply:
Related FAQ:
None Link to a FAQ
Revision history for this message
|
#1 |
Can you run ssh with the -vvv option to see where the delay is?
Revision history for this message
|
#2 |
Hello,
Here it is, after the last message, nothing happens.
pqs@quintana:~$ ssh -vvv <email address hidden> > ovaltine.txt
OpenSSH_4.3p2 Debian-8ubuntu1, OpenSSL 0.9.8c 05 Sep 2006
debug1: Reading configuration data /home/pqs/
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to ovaltine.
debug1: Connection established.
debug1: identity file /home/pqs/
debug3: Not a RSA1 key file /home/pqs/
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /home/pqs/
debug1: identity file /home/pqs/
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.8.1p1 Debian-8.sarge.6
debug1: match: OpenSSH_3.8.1p1 Debian-8.sarge.6 pat OpenSSH_3.*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-
debug2: kex_parse_kexinit: aes128-
debug2: kex_parse_kexinit: hmac-md5,
debug2: kex_parse_kexinit: hmac-md5,
debug2: kex_parse_kexinit: none,<email address hidden>,zlib
debug2: kex_parse_kexinit: none,<email address hidden>,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-
debug2: kex_parse_kexinit: aes128-
debug2: kex_parse_kexinit: hmac-md5,
debug2: kex_parse_kexinit: hmac-md5,
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_init: found hmac-md5
debug1: kex: server->client aes128-cbc hmac-md5 none
debug2: mac_init: found hmac-md5
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_
debug1: expecting SSH2_MSG_
debug2: dh_gen_key: priv key bits set: 114/256
debug2: bits set: 522/1024
debug1: SSH2_MSG_
debug1: expecting SSH2_MSG_
debug3: check_host_
debug3: check_host_
debug3: check_host_
debug3: check_host_
debug1: Host 'ovaltine.
debug1: Found key in /home/pqs/
debug2: bits set: 508/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_
Revision history for this message
|
#3 |
At the bug https:/
Revision history for this message
|
#4 |
After testing what is proposet, it didn't work... :'(
Revision history for this message
|
#5 |
You may have firewall, try run iptables -L
What is the results?
Revision history for this message
|
#6 |
These are the results,
thank you!
pqs@quintana:~$ sudo iptables -L
Password:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Revision history for this message
|
#7 |
Try test ssh from another machine, is it same thing?
Revision history for this message
|
#8 |
I don't have another machine,
but I have downloaded the windows version of Putty and run it with wine. This way I can connect with no problems.
Then I saw that there is a putty for linux. So I apt-get installed it and it didn't work, like the standard ssh.
Revision history for this message
|
#9 |
try mv .ssh folder to /opt then try ssh to your server
also give me your log:
sudo tail -50 /var/log/secure
Yours,
Waleed
Revision history for this message
|
#10 |
try mv .ssh folder to /opt then try ssh to your server
also give me your logs:
sudo tail -50 /var/log/secure
Yours,
Waleed
Revision history for this message
|
#11 |
I had the same problem.. Heres the fix...
in /etc/ssh/
GSSAPIAuthentic
GSSAPIDelegateC
Revision history for this message
|
#12 |
Logix, it didn't work
Waleed, I haven't tryed yet, I'll try to do what you propose tomorrow
Thank you all.
Revision history for this message
|
#13 |
Pere,
When running the ssh -vvv, does any particular part of the transaction seem to take more time that the others? Also, it it only establishing the initial connection that is slow, or is the entire session slow?
As a side note, it looks like your ~/.ssh/id_rsa file is invalid or corrupt. You might try moving it out of the way and see if that has any impact.
Revision history for this message
|
#14 |
Hello
> As a side note, it looks like your ~/.ssh/id_rsa file is invalid or corrupt. You might try moving it out of the way and see if that has any impact.
I mv the .ssh folder out and it worked. So the problem was in this corrupt file.
Thank you all for your help
best regards
Pere