I would like to connect to my remote machine through SSH command line, but I don't know what are the appropriate terminal commands.
I always get an error "connection refused".
If I recall correctly, the ssh server
run on both machines will get
WARNING: sshd is not installed by default for good reason, it has the potential to open your system to any black-hat hacker or bot on the internet especially if you have weak passwords or firewalls. You should understand the security hole that you'll open before you open it.
First of all you must be sure that the ssh server you want to connect is running. To do this, try typing:
where 22 is the default port of the
is the user who has permission to access the server via ssh.
If server refuse connection maybe is some different problem. Some firewall settings ...