Remote Server Connection
Understand 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 wuill save the fingerprint to known_hosts file.
To simplify the connection process, you can create a Host specific configuration file
known_hosts
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.