Remote Server Connection¶
Connecting to a remote server¶
Parameters | Description | Example |
---|---|---|
-p | Port Number | 2222 |
-v | More information (Verbose) | - |
When you SSH to a server, it will prompt you whether you want to connect by showing the fingerprint. It will save the fingerprint to known_hosts file.
Info
To simplify the connection process, you can create a Host specific configuration file.
known_hosts¶
Info
It will generate a known_hosts
file in your local ~/.ssh
directory.
A fingerprint will be displayed when you SSH to a server. If you put "yes", the system will save the fingerprint to your local ~/.ssh/known_hosts
file, so you won't have to enter the same thing again next time.
As a result, it can help to prevent the man-in-the-middle-attack.