Trying to connect VM guest CentOS 7 using cygwin ssh (openssh ) without success

16 views
Skip to first unread message

Meir Yanovich

unread,
Dec 7, 2019, 9:09:36 AM12/7/19
to Vagrant
Hello all
i try to ssh via cygwin to the CentOS 7  VM i  installed 
i try as i do normally   : 
ssh -i /cygdrive//d/HashiCorp/centos7/.vagrant/machines/default/virtualbox/private_key    vag...@127.0.0.1

but im getting : 
ssh: connect to host 127.0.0.1 port 22: Connection refused

The vagrant ssh command working find but i like to be able to login from simple ssh 
thanks 


 

Brian Carpenter

unread,
Dec 9, 2019, 9:41:34 AM12/9/19
to Vagrant
Vagrant creates port mappings 2222 -> guest 22

perhaps you need to add a ssh -p 2222 to your command
Reply all
Reply to author
Forward
0 new messages