2

yesterday I was trying to authenticate via ssh "ssh demo" and return me the following error.

ssh: connect to host ip port 7221: Connection refused

If you need more information I will provide it to you. Kind Regards

ssh -vvv demo

    255 ↵  ‹ruby-2.2.0›
OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /Users/Administrator/.ssh/config
debug1: /Users/Administrator/.ssh/config line 24: Applying options for demo
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 95.87.193.156 [95.87.193.156] port 7221.
debug1: connect to address 95.87.193.156 port 7221: Connection refused
ssh: connect to host 95.87.193.156 port 7221: Connection refused
  • what is "demo" , is an entry in /etc/hosts/ maybe, or maybe an ~/.ssh/config entry? are you sure SSH is served on 7221 port? – lese Feb 12 '16 at 9:48
  • Yes demo is vm Ubuntu image on the Centos machine.Here is iptables --list on the cent machine.ACCEPT tcp -- anywhere anywhere tcp dpt:7221.This is the port – D.Kamenov Feb 12 '16 at 9:53
  • please execute this on the VM cat /etc/ssh/ssh_config | grep Port – lese Feb 12 '16 at 10:06
  • cat /etc/ssh/ssh_config | grep Port # Port 22 – D.Kamenov Feb 12 '16 at 10:29
  • @D.Kamenov can you please edit your question and include the detail you've included here as comments. – EightBitTony Feb 12 '16 at 10:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.