Just click on “YES” to proceed (just make you’re connecting to the right server).
Note that if you are not logged into your Mac as the administrator you will not be able to make these changes. You should see Terminal appear as an application. This is usually at the top right and is called Spotlight Search in the current Mac OS.
If you don’t know how to do this, go the magnifying glass on the Apple desktop. Use Apple Terminal Program to Connect to SSH We will be using the default Terminal application to login to SSH using the key that we generated above. The next part of the process requires that you login to your Mac as an administrator. NOTE: If you don’t authorize this key, it doesn’t matter what you do on the Mac side, you won’t be able to login. Click on this button to authorize the key. Newly generated keys are not initially authorized for use. Check to see if the Public key has an authorization status of NOT AUTHORIZED.To make it simple for this tutorial, copy the file to your desktop. This is the key that you will need to load onto your Mac. Click on View/Download for the PRIVATE key. You should see the Public key and the Private key generated with the name “id_rsa”.
Click on the Go Back button to return to the Manage SSH Keys page.
Make sure to write down the password you used or save a copy in a secure location.
We’re going to name this server “nextcloud” so we can easily remember how to Secure Shell into it. For example, say this is a Nextcloud server at IP address 192.168.1.20 and the username is vega. In that directory, create the new file with the command: Once it opens, change into your user SSH directory with the command: With those at the ready, let’s make this happen. The only thing you’ll need is a MacBook or iMac that includes SSH and some remote servers to connect to. SEE: Identity theft protection policy (TechRepublic Premium) What you’ll need How do you do that on macOS? Let me show you. What if I told you that SSH can use a configuration file to make it much easier? By making use of the SSH configuration file, you can configure an entire data center worth of SSH connections such that you could issue a command: Ssh what happens if you remote into 10 or 20 different machines throughout the day, each with different usernames and IP addresses? That can get a bit confusing after a while. Open your macOS terminal app and issue a command like:Īs long as your usernames are the same on both ends, you’re good to go, but if your user names aren’t the same, that command might look like: Generally speaking, SSH is quite easy to use. You probably use SSH to connect to remote machines for admin purposes.
Jack Wallen shows you how to make SSH connections even easier from your macOS machine. How to use an SSH config file on macOS for easier connections to your data center servers