SSH into a remote server (if available) using a key file and check the logged-in username. (Use whoami)
SSH into the Remote Server Using a Key File
Use the following command to connect to the remote server:
bashCopyEditssh -i /path/to/private_key username@remote_server_ip
-i /path/to/private_key → Specifies the SSH private key file
username@remote_s...