Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using VirtualBox on Windows 8.1 (host) to run Ubuntu 13.10 as a guest.

Yesterday, I was able to log in using SSH/SFTP/FTP from the host to the guest without any problems, it was really fast.

A few days ago, I uninstalled some apps and installed a few updates on windows (the host) and I am now having troubles when I try to connect by SSH or FTP. The first request takes about 5 or 10 seconds. Any idea why this would be happening?

I've tried a few things already: - Re-install VirtualBox - Disable Firewall on both, host and guest. - Disable Dinwdows Defender.

Using Filezilla in Debug mode:

Status: Connecting to files.ls...
Trace:  Going to execute "C:\Program Files (x86)\FileZilla FTP Client\fzsftp.exe"
Response:   fzSftp started
Trace:  CSftpControlSocket::ConnectParseResponse(fzSftp started)
Trace:  CSftpControlSocket::SendNextCommand()
Trace:  CSftpControlSocket::ConnectSend()
Command:    open "marco@files.ls" 22
Trace:  Looking up host "files.ls"
Trace:  Connecting to 192.168.0.105 port 22
Trace:  Server version: SSH-2.0-OpenSSH_6.2p2 Ubuntu-6ubuntu0.1
Trace:  Using SSH protocol version 2
Trace:  We claim version: SSH-2.0-PuTTY_Local:_Aug__7_2013_21:25:06
Trace:  Doing Diffie-Hellman group exchange
Trace:  Doing Diffie-Hellman key exchange with hash SHA-256
Trace:  Host key fingerprint is:
Trace:  ssh-rsa 2048 a6:28:76:90:89:f5:94:21:a1:44:f7:ac:53:d1:6d:07
Trace:  Initialised AES-256 SDCTR client->server encryption
Trace:  Initialised HMAC-SHA1 client->server MAC algorithm
Trace:  Initialised AES-256 SDCTR server->client encryption
Trace:  Initialised HMAC-SHA1 server->client MAC algorithm
Command:    Pass: ********
Trace:  Sent password
Trace:  Access granted
Trace:  Opened channel for session
Trace:  Started a shell/command
Status: Connected to files.ls
Trace:  CSftpControlSocket::ConnectParseResponse()
Trace:  CSftpControlSocket::ResetOperation(0)
Trace:  CControlSocket::ResetOperation(0)
Trace:  CFileZillaEnginePrivate::ResetOperation(0)
Status: Retrieving directory listing...
Trace:  CSftpControlSocket::SendNextCommand()
Trace:  CSftpControlSocket::ChangeDirSend()
Command:    pwd
Response:   Current directory is: "/home/marco"
Trace:  CSftpControlSocket::ResetOperation(0)
Trace:  CControlSocket::ResetOperation(0)
Trace:  CSftpControlSocket::ParseSubcommandResult(0)
Trace:  CSftpControlSocket::ListSubcommandResult()
Trace:    state = 1
Trace:  CSftpControlSocket::ResetOperation(0)
Trace:  CControlSocket::ResetOperation(0)
Status: Directory listing successful
Trace:  CFileZillaEnginePrivate::ResetOperation(0)

It gets stuck at this line for about 3 seconds; sometimes 5...

Trace:  Initialised HMAC-SHA1 server->client MAC algorithm

Thanks.

share|improve this question
    
You can use -vv option in ssh, which will show you the background processes while doing ssh. You will get to know the cause of slower performance, by looking at where the connection attempt going slower! Example: ssh -vv user@10.3.2.1 –  Uvais Ibrahim Feb 13 at 4:34
    
@UvaisIbrahim thank you for checking in. I edited the question and included a log. I hope it helps. –  Marco F. Feb 20 at 4:40
    
related to stackoverflow.com/questions/5906441/… –  Kevin Panko Feb 24 at 22:44

1 Answer 1

up vote 2 down vote accepted

I found out that it was a delay caused by the DNS lookup. I had to disable it:

Edit /etc/ssh/sshd_config and disable the property UseDNS:

UseDNS no
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.