• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
SSH is slow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SSH is slow


  • Subject: SSH is slow
  • From: Matevž Markovič <email@hidden>
  • Date: Tue, 10 Aug 2010 03:30:16 -0400

Hello!

I have a Powermac G4 MDD running OS X 10.4.11. It has the SSH service enabled.

If I connect using ssh to my computer at home from work, I have a really bad connection. It feels unresponsive, sometimes hangs for some seconds etc. Logins are sometimes quick, sometimes really slow. When I type something, it takes time for the characters to appear on my screen.

My router at home has port 222 open for ssh service, and this port is forwarded to internal network as port 22 (standard ssh port).
I have a ADSL 1024/256 connection. Otherwise, the connection is responsive, only ssh hangs.

The computer at work is running Fedora 13 (the bandwidth of my company is > 1Gb/s so this should not be a problem), while I also tried connecting from my Macbook pro running OS X Leopard 10.5.8 (from 56k modem). The result was the same slow and unresponsive connection.

I added my work IP to the etc/hosts, but it does not help. 

my etc/ssh_config:
>>
AllowUsers matevzmarkovic
PermitRootLogin no

# Host *
# ForwardAgent no
# ForwardX11 no
# RhostsRSAAuthentication no
# RSAAuthentication yes
# PasswordAuthentication yes
# HostbasedAuthentication no
# GSSAPIAuthentication yes
# GSSAPIDelegateCredentials no
GSSAPIKeyExchange no
# GSSAPITrustDNS no
# BatchMode no
# CheckHostIP yes
# AddressFamily any
# ConnectTimeout 0
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
# IdentityFile ~/.ssh/id_dsa
# Port 22
# Protocol 2,1
# Cipher 3des
# Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
# EscapeChar ~
# Tunnel no
# TunnelDevice any:any
# PermitLocalCommand no
UseDNS no

I also tried ssh -p 222 -v -v -v email@hidden
Result:
>>
OpenSSH_5.4p1, OpenSSL 1.0.0a-fips 1 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to markovic.homeunix.org [86.61.0.103] port 222.
debug1: Connection established.
debug1: identity file /home/matevz/.ssh/id_rsa type -1
debug1: identity file /home/matevz/.ssh/id_rsa-cert type -1
debug1: identity file /home/matevz/.ssh/id_dsa type -1
debug1: identity file /home/matevz/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_4.5
debug1: match: OpenSSH_4.5 pat OpenSSH_4*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.4
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: email@hidden,email@hidden,ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,email@hidden
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,email@hidden
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,email@hidden,hmac-ripemd160,email@hidden,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,email@hidden,hmac-ripemd160,email@hidden,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,email@hidden,zlib
debug2: kex_parse_kexinit: none,email@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: gss-gex-sha1-toWM5Slw5Ew8Mqkay+al2g==,gss-group1-sha1-toWM5Slw5Ew8Mqkay+al2g==,gss-group14-sha1-toWM5Slw5Ew8Mqkay+al2g==,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,email@hidden,aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,email@hidden,aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,email@hidden,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,email@hidden,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,email@hidden
debug2: kex_parse_kexinit: none,email@hidden
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: found hmac-md5
debug1: kex: server->client aes128-ctr hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 125/256
debug2: bits set: 516/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug3: put_host_port: [86.61.0.103]:222
debug3: put_host_port: [markovic.homeunix.org]:222
debug3: check_host_in_hostfile: host [markovic.homeunix.org]:222 filename /home/matevz/.ssh/known_hosts
debug3: check_host_in_hostfile: host [markovic.homeunix.org]:222 filename /home/matevz/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 1
debug3: check_host_in_hostfile: host [86.61.0.103]:222 filename /home/matevz/.ssh/known_hosts
debug3: check_host_in_hostfile: host [86.61.0.103]:222 filename /home/matevz/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 1
debug1: Host '[markovic.homeunix.org]:222' is known and matches the RSA host key.
debug1: Found key in /home/matevz/.ssh/known_hosts:1
debug2: bits set: 502/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: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/matevz/.ssh/id_rsa ((nil))
debug2: key: /home/matevz/.ssh/id_dsa ((nil))
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password,keyboard-interactive
debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password,keyboard-interactive
debug3: preferred gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup gssapi-with-mic
debug3: remaining preferred: publickey,keyboard-interactive,password
debug3: authmethod_is_enabled gssapi-with-mic
debug1: Next authentication method: gssapi-with-mic
debug3: Trying to reverse map address 86.61.0.103.
debug1: Unspecified GSS failure. Minor code may provide more information
Credentials cache file '/tmp/krb5cc_500' not found

debug1: Unspecified GSS failure. Minor code may provide more information
Credentials cache file '/tmp/krb5cc_500' not found

debug1: Unspecified GSS failure. Minor code may provide more information


debug2: we did not send a packet, disable method
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/matevz/.ssh/id_rsa
debug3: no such identity: /home/matevz/.ssh/id_rsa
debug1: Trying private key: /home/matevz/.ssh/id_dsa
debug3: no such identity: /home/matevz/.ssh/id_dsa
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
debug3: authmethod_is_enabled keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug2: input_userauth_info_req
debug2: input_userauth_info_req: num_prompts 1

password:

---------------------- IT GOT HERE IN <3 SECONDS, BUT NOW IT STARTS TO FEEL SLOW

THERE WERE NO FURTHER DEBUG RESPONSES FROM SSH

Please, help. It really slows me down and makes me impatient.

Thank you for your response,
                                                                Matevž Markovič
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: SSH is slow
      • From: Dan Shoop <email@hidden>
    • [OT] Re: SSH is slow
      • From: Alastair Houghton <email@hidden>
    • Re: SSH is slow
      • From: Jonas Maebe <email@hidden>
  • Prev by Date: Re: iPhone calculator application...
  • Next by Date: Re: SSH is slow
  • Previous by thread: Re: iPhone calculator application...
  • Next by thread: Re: SSH is slow
  • Index(es):
    • Date
    • Thread