Attempts to reproduce a Local Port Forwarding example on 16.04 with the command:
$ ssh -L 8080:www.slashdot.org:80 localhost
returns:
ssh: connect to host localhost port 22: Connection refused
The tutorial sets the expectation: You will be prompted to enter your user password for the client machine.
Essentially, you are connecting, via SSH, back to your client machine, but creating the necessary SSH tunnel to the destination. After you've successfully authenticated against your local account, open up a browser and point it to http://localhost:8080. Your browser should automatically redirect you to Slashdot.'
Any insight as to why I am not prompted for my Ubuntu credentials at the command line is appreciated.
UPDATES
$ systemctl status ssh.service
returns:
● ssh.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
localhost
? what doessystemctl status ssh.service
say?sudo apt install openssh-server
)