Accessing remote systems with SSH
SSH, as we mentioned earlier in this chapter, is a protocol that's used to connect to remote systems. In general, the syntax, in its most basic form, is just executing ssh host
within a terminal.
The ssh
client will then initiate a connection to the ssh
server on the target host, using the username of the currently logged-in user by default, and will try to reach the remote server on port 22/tcp
, which is the default for the SSH service.
In the following screenshot, we can see the closest server to our localhost
system, which means we will be connecting to our own server:
In the preceding screenshot, we can see how the first interaction with the server prints the fingerprint of the server to authenticate it. This is what was discussed in the previous section; that is, StrictHostKeyChecking
. Once accepted, if the host key changes, the connection will be...