Development Linux Ubuntu

Troubleshooting Local Port Forwarding Example

Attempts to reproduce a Local Port Forwarding example on 16.04 with the command:

$ ssh -L localhost


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.


$ systemctl status ssh.service


‚óŹ ssh.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

Leave a Reply

Your email address will not be published. Required fields are marked *