ssh USERNAME@IP-ADDRESS OR ssh IP-ADDRESS
When you connect to a server via SSH for the FIRST TIME then it asks for CONFIRMATION by asking:-
Are you sure you want to continue connecting (Yes/no/[fingerprint])?
It basically allows you to Cross-Check whether the server you are connecting via FINGERPRINTS which are usually in these formats/standards of [You only have to accept the connection ONCE]:-
- RSA
- ECDSA
- ED25519
You can edit this "known_hosts"-File if you want to ADD/REMOVE Remote-Servers.
Now in order to disconnect from the Remote-Server just type "logout" & if the Remote-Server uses a "PORT" other than "PORT-22" then you can specify the PORT-NUMBER via "-p"-FLAG, as shown in the following example:-
ssh -p PORT-NUMBER IP-ADDRESS