cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3166
Views
0
Helpful
3
Replies

Slow SSH

rjdavison
Level 1
Level 1

I'm running a 1721 with a vpn running config.

SSH between local area computers is fine, but very slow at logging in externally to server on the LAN.

SSH to the 1721 is fine, but anything through this is slow to log on. Speed seesm to pick up once the ssh client has finaly made the connection.

Is this something to do with the router, or more of the fact that the ssh deamon is slowing it down. I've read about putting a reverse dns entry into the hosts file (im running freebsd) but try that and nothing....

Is anyone able to help further

3 Replies 3

Joe Clarke
Cisco Employee
Cisco Employee

Running ssh with -vv on the client side might give you more of a clue as to where the slowdown lies. You can also run sshd with "-D -ddd" on the server side to get a lot of debugging output there.

Typically, a reverse lookup problem would manifest itself in a delay getting the initial server prompt. Make sure you added the correct client IP to the server's host file. And depending on the version of FreeBSD, check /etc/host.conf or /etc/nsswitch.conf to make sure you're configured to look at the hosts file before dns.

Thanks. I've got a WIC-1ADSL in the 1721 with a public IP address of 83.**.**.101. The FastEthernet interface of the 1721 that is connected to the switch has an IP address of 192.168.0.1. The 1721 is called router.casezero.net

There is a delay in getting the intial server prompt so guess it is getting hung up somewhere doing a reverse lookup.

In the /etc/host file, what ip address do I use. I've seen some articles saying that its the public address (83.**.**.101), some say the internal address (192.168.0.1).

You need to add the client's IP (the one initiating the SSH connection) as seen by the FreeBSD server.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: