I am geeting this error whenever i am using the below command in ubuntu: ssh localhost
it shows the error unable to connect to local host at port 22:connection refused
Please help me with this
It probably means that you don't have sshd running, or it could be a misconfigured firewall (yes, you can firewall off localhost).
You need a
Install it via Terminal:
And try connecting: