I am studying about VM and vagrant.
I am getting network refuse error when I am trying to access to ssh through putty.
I already installed putty, puttygen, vagrant and virtualbox.
and I am using window 7 32bit.
What I did was…
- Using puttygen and go to .vagrant.d folder to select insecure_private_key.
- I create the private key which name has “putty_key”
- go to Putty: Connection ->Data and I put the “vagrant” as Auto-login usename
- go to connection ->ssh->auth and I select the “putty_key” as private key file for authentication.
- then i go back to session
Host name(or IP address) : localhost
part: 2222
Saved session: vagrant
then I saved setting.
When I double click “vagrant”
error window was popped up
“Network error: Connection refused”
I am not really sure that reason that I am getting this error.
does anybody know that solution about this problem ?
“Connection refused” usually means that there is no listening socket at the target port. Verify that you have an SSH server listening on port 2222, and verify that it is bound at least to the loopback interface.
To do so, from a command prompt:
netstat -p tcp -a -nand look for a line with the stateLISTENING, and a local address of something that ends with:2222