Quote:
Originally Posted by scasey
My guess is that sshd is not configured to listen on 127.0.0.1 There's certainly nothing in that tutorial about the ListenAddress in sshd_config. Another possibility is that sshd is not running.
What does return?
Interesting that that tutorial says you need to have set up vsftpd first. That's certainly not true. You don't an ftp server to use sftp.
[Oops. Pasted wrong command...fixed now]
|
Here's what I get back. And to be honest I did not set up vsftp first as the tutorial mentions in the first step, since I thought the same thing.
Code:
netstat -tnlp
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:2019 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN -
tcp6 0 0 ::1:3350 :::* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 ::1:631 :::* LISTEN -
tcp6 0 0 :::443 :::* LISTEN -
tcp6 0 0 :::3389 :::* LISTEN -
tcp6 0 0 :::2016 :::* LISTEN -
tcp6 0 0 :::80 :::* LISTEN -
So it looked like you were right, it wasn't listening on 127.0.0.1, so I added:
Code:
ListenAddress 127.0.0.1
And then restarted ssd with:
Code:
sudo systemctl restart ssd
Now when I run the netstat command, I get:
Code:
netstat -tnlp
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:2019 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN -
tcp6 0 0 ::1:3350 :::* LISTEN -
tcp6 0 0 ::1:631 :::* LISTEN -
tcp6 0 0 :::443 :::* LISTEN -
tcp6 0 0 :::3389 :::* LISTEN -
tcp6 0 0 :::2016 :::* LISTEN -
tcp6 0 0 :::80 :::* LISTEN -
However, I am still instantly getting the same message when I try to connect:
Code:
client_loop: send disconnect: Broken pipe
Connection closed