{"id":23814,"date":"2022-12-15T20:38:15","date_gmt":"2022-12-15T20:38:15","guid":{"rendered":"https:\/\/mailinvest.blog\/index.php\/2022\/12\/15\/how-to-use-ssh-for-secure-connections-in-macos\/"},"modified":"2022-12-15T20:38:15","modified_gmt":"2022-12-15T20:38:15","slug":"how-to-use-ssh-for-secure-connections-in-macos","status":"publish","type":"post","link":"https:\/\/mailinvest.blog\/index.php\/2022\/12\/15\/how-to-use-ssh-for-secure-connections-in-macos\/","title":{"rendered":"How to use SSH for secure connections in macOS"},"content":{"rendered":"<p> <a href=\"https:\/\/go.fiverr.com\/visit\/?bta=1052423&nci=17043\" Target=\"_Top\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"https:\/\/mailinvest.blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/fiverr.ck-cdn.com\/tn\/serve\/?cid=40081059\"  width=\"601\" height=\"201\"><\/a>\n<\/p>\n<div>\n<div class=\"col-sm-12\" id=\"article-hero\" aria-labelledby=\"hero-cap\" role=\"figure\">\n                        <span id=\"hero-cap\" style=\"display:none;\">Article Hero Image<\/span><br \/>\n                        <a href=\"https:\/\/photos5.appleinsider.com\/gallery\/51751-103147-lede-xl.jpg\"><br \/>\n              <img decoding=\"async\" src=\"https:\/\/mailinvest.blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/photos5.appleinsider.com\/gallery\/51751-103147-lede-xl.jpg\" alt=\"\"\/><br \/>\n            <\/a>\n          <\/div>\n<div class=\"col-sm-12\">\n<p style=\"font-size:.9em;\">&#13;<br \/>\n        <em>&#13;<br \/>\n            AppleInsider may earn an affiliate commission on purchases made through links on our site.&#13;<br \/>\n        <\/em>&#13;\n    <\/p>\n<\/div>\n<p class=\"col-sm-12 article-lead\">The Secure Shell \u2014  SSH \u2014  allows you to send secure, encrypted, communications between computers that is nearly impossible to crack. Here&#8217;s how to use it in <a href=\"https:\/\/appleinsider.com\/inside\/macos\" title=\"macOS\" data-kpt=\"1\">macOS<\/a>.&#13;<\/p>\n<div class=\"col-sm-12\">\n<p>Before personal computers, people used <a href=\"https:\/\/en.wikipedia.org\/wiki\/Time-sharing\">time-sharing<\/a> terminals in computer labs which were attached to mainframe computers. Each user sat at a <em>dumb terminal<\/em> which was merely a display and keyboard connected to the mainframe computer. Later, as mini computers began to arrive, terminals were connected via a network.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Originally, to access another computer on a network remotely a program called <a href=\"https:\/\/en.wikipedia.org\/wiki\/Telnet\">Telnet<\/a> was used. Telnet was one of the earliest internet applications, and was widely used in university and research settings. Security wasn&#8217;t considered an issue at the time, since most people still didn&#8217;t use the internet, and mass online fraud wasn&#8217;t a problem.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Internet commercialization in the 1990&#8217;s changed all that. As time went on, and with the advent of e-commerce, exchanging personal or financial data became ubiquitous.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Telnet still worked, but had one major flaw in the age of internet-everywhere: it sent and received all data in the clear as plain text. This included personal and financial info, and worst of all, passwords \u2014  anyone listening in on your network traffic could steal them.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>To solve this problem, in 1999, Finnish developer Tatu Ylonen created the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Secure_Shell\">Secure Shell<\/a> (SSH) &#8211; both a networking protocol and UNIX tool for sending and receiving data over unsecured networks by means of encryption combined with <a href=\"https:\/\/en.wikipedia.org\/wiki\/Public_key_infrastructure\">Public Key Infrastructure<\/a> (PKI).&#13;<\/p>\n<\/div>\n<p><h2 data-anchor=\"public-key-infrastructure\" id=\"public-key-infrastructure\">Public Key Infrastructure<\/h2>\n<p>&#13;<\/p>\n<div class=\"col-sm-12\">\n<p>One of the most difficult problems to solve in computer security is how to <em>guarantee<\/em> the authenticity of a remote user. Several techniques exist which hackers can use to impersonate users, and it&#8217;s difficult for servers and other users to insure impostors don&#8217;t gain unauthorized access.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Even long, difficult-to-guess passwords can be cracked by powerful supercomputers. Even the best passwords are insecure. And worst of all, passwords can be stolen.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>What is needed is something more secure, which can be verified on both ends of a connection by both parties, which is complex enough not to be guessed or cracked, can&#8217;t be stolen, and which can&#8217;t be impersonated.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Such a solution is found in Public Key Infrastructure (PKI). We won&#8217;t go deep into PKI here as it&#8217;s a complex topic, but we&#8217;ll summarize briefly how it works.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>The basic idea behind PKI is that any given computer user generates a pair of keys &#8211; one public, and one private. Both are secured with a password only the user knows, but the password isn&#8217;t required for key use.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>At key generation, an algorithm creates a long encoded block of scrambled text inside each key called a cryptographic hash. The <em>private<\/em> key remains on the user&#8217;s computer in a file and is never sent or given out &#8211; ever. The second or &#8220;public&#8221; key contains a different hash, but one still related to the private one.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Only the algorithm knows how to unhash and compare both keys.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Hence, only the algorithm can verify or deny any given key pairs&#8217; authenticity. Both keys are required for communication at all times. One key without the other is useless and invalid.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Once a key pair is established, the user publishes their public key on the internet. A user&#8217;s public key file can also be given out to others for verification purposes. But, the user&#8217;s private key never leaves their computer or possession.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>When a user wants to connect to a server or service using PKI, he or she first asks that service&#8217;s administrator to add their public key to an authorized keys list which resides on the server or service. This list acts as a sort of verified users list the server can use during user authentication.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Next, when the user tries to connect to the remote server or service, the connecting app sends a handshake from the user&#8217;s computer containing their public key. The server looks in its list of known keys, and if it finds the same public key, it sends back a challenge to the requesting computer: <em>what is your private key?<\/em>&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>If the sender is legitimate, and the same computer as the original sender, it reads, encrypts, and sends the user&#8217;s private key securely over the network. When the server receives the private key, it decrypts it on the server, then reverse-hashes both the user&#8217;s public and private keys.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>If the algorithm confirms that the key pair matches, it authenticates the user, sends a handshake confirmation back to the sender, and an encrypted, secure connection is established.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>The upshot of all of this, of course, is that without the corresponding private key, communication is impossible. No passwords to send, no <a href=\"https:\/\/en.wikipedia.org\/wiki\/Man-in-the-middle_attack\">man-in-the-middle attacks<\/a> to impersonate servers &#8211; the requester either has and sends the private key when challenged by the server or it doesn&#8217;t &#8211; there&#8217;s no middle ground.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Without it, the server will refuse the connection.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Most of this connection action happens transparently &#8211; without the user knowing or having to even think about it &#8211; all the server cares about is if any given connection request comes from the computer which holds the matching private key or not. If not, no dice. No exceptions.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>All of this is a bit of an oversimplification, but in essence is how PKI works.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>PKI has the added benefit of being easier to use and less obtrusive &#8211; once set up and installed, PKI key pairs eliminate the need for passwords &#8211; no more having to type a password every time you log in to a server. Your identity is known and guaranteed &#8211; and passwords are a thing of the past.&#13;<\/p>\n<\/div>\n<p><h2 data-anchor=\"using-ssh-on-the-mac\" id=\"using-ssh-on-the-mac\">Using SSH on the Mac<\/h2>\n<p>&#13;<\/p>\n<div class=\"col-sm-12\">\n<p>Apple&#8217;s macOS, being a full UNIX system, has full support for PKI built-in. It uses <a href=\"https:\/\/www.openssh.com\/history.html\">OpenSSH<\/a> &#8211; which is part of the <a href=\"https:\/\/www.openbsd.org\/\">OpenBSD<\/a> project. Setting up your own PKI key pair is fairly easy in macOS. Once your keys are installed on your <a href=\"https:\/\/appleinsider.com\/inside\/mac\" title=\"Mac\" data-kpt=\"1\">Mac<\/a>, you&#8217;ll rarely need to access them directly &#8211; they will mostly be used by applications in the background silently.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>In macOS, SSH keys live in each user&#8217;s folder, in a hidden folder called .ssh. This folder is normally hidden (for security reasons) unless you <a href=\"https:\/\/appleinsider.com\/articles\/22\/11\/20\/how-to-use-invisible-files-in-macos\">show invisible files in the Finder<\/a>. If you haven&#8217;t yet generated your PKI keys, this folder probably won&#8217;t exist &#8211; it gets created by the system when you generate the keys.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>There are two easy ways to generate a PKI key pair in macOS. Either the Terminal, or a third-party keychain app such as <a href=\"https:\/\/gpgtools.com\/\">GPGTools<\/a> can be used.&#13;<\/p>\n<\/div>\n<p><h2 data-anchor=\"how-to-generate-a-pki-key-pair-in-macos-terminal\" id=\"how-to-generate-a-pki-key-pair-in-macos-terminal\">How to generate a PKI key pair in macOS Terminal<\/h2>\n<p>&#13;<\/p>\n<div class=\"col-sm-12\">\n<p><strong>ssh-keygen -b 4096 -t rsa<\/strong> and press <strong>Return<\/strong>.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>You&#8217;ll be prompted for a location to save the key files, with the Terminal responding &#8220;Enter file in which to save the key (\/Users\/username\/.ssh\/id_rsa)&#8221; Just press <strong>Return<\/strong> at this point.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Next, you&#8217;ll be prompted for a password to use for the key files. In most cases, just press <strong>Return<\/strong>. You can enter a password if you want, but note that this password is not needed for key exchange: it&#8217;s only used when making local modifications to the key files themselves.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Passwords generally are redundant with PKI &#8211; the keys themselves are the security, and passwords, as already discussed, are in general insecure.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>The ssh-keygen UNIX command is a tool to generate keys. There are a variety of options and settings for key generation. You can view all ssh-keygen options by typing &#8220;man ssh-keygen&#8221; in Terminal and pressing <strong>Return<\/strong>.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>The <strong>-b 4096<\/strong> option tells ssh-keygen to generate a 4096-bit strong key. At current world supercomputing speeds, it takes the fastest supercomputers on earth over one-hundred years to crack a 4096-bit key &#8211; which means their security is guaranteed.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Instead of using Terminal to generate keys, you can download and install a third-party keychain app such as <a href=\"https:\/\/gpgtools.org\/\">GPGTools<\/a>. Once downloaded, run the installer. When the installer finishes, close it, then open the GPG Keychain app in your Applications folder.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>If no keys were previously installed on your Mac, GPG Keychain will prompt for an email address and password to use for key generation. Enter appropriate info, then click Generate. After a few seconds key files will be created in an .ssh folder, just as ssh-keygen did above.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Either way, you now have an .ssh folder inside your user folder. Inside this folder you&#8217;ll find five items:&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<ol>&#13;<\/p>\n<li><strong>authorized_keys<\/strong> (remote users you want to allow ssh to authorize to connect to your Mac)<\/li>\n<p>&#13;<\/p>\n<li><strong>config<\/strong> (ssh config info)<\/li>\n<p>&#13;<\/p>\n<li><strong>id_rsa<\/strong> (your private key)<\/li>\n<p>&#13;<\/p>\n<li>i<strong>d_rsa.pub<\/strong> (your public key)<\/li>\n<p>&#13;<\/p>\n<li><strong>known_hosts<\/strong> (a list of known remote servers you want to allow to connect to your Mac).<\/li>\n<p>&#13;\n<\/ol>\n<\/div>\n<div class=\"col-sm-12\">\n<p>If you open your id_rsa.pub key file in a text editor such as TextEdit, you&#8217;ll see your public key, followed by your local machine&#8217;s user and machine name. For example:&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p><strong>ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFYeQoBHJD4aNtuJrClanz02mDC74O\/qkVuWqMxSFqTohEB\/o\/E5eUYia+wPnSRHSo8W2aQo69wZusWXqSMIltjsvadsU51v0j1dw9f3pJNsOQEfOQhVq78HGti+crSI7R\/1umbGHkLAUldpEEOhcOqFI+\/3UeXTX93SMd1VhD14k32blma8fwbzTY9AUx0osD7FOJWK\/Wz7YDEuxjnFmrHUzuPmzDQQGjYR0S8FaO7ICSeoPIzic0ysgWjwcNtfQnDODEXkt+AhWeQUzIdFSMhrxjPDT5fVUbocPwNgCCtDLwnZ74MrFjgm0hARrN+IcyFXbSPkO4KCOOXl1J1n+H <a href=\"https:\/\/appleinsider.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"5c356b1c356b2f7135113d3f7230333f3d30\">[email\u00a0protected]<\/a><\/strong>&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>In fact, do that now: navigate to your Users\/~\/.ssh folder, open id_rsa.pub in a text editor, and copy the entire thing.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Since both the public and private keys are stored in the two files as text, make sure your private key file is never compromised: if someone else gains access to your private key, they can install it onto another computer and impersonate you.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>If all you care about is outgoing connections to remote servers, then you don&#8217;t need to worry about most of these files except id_rsa and id_rsa.pub. The other three files are generally used in a server setting for incoming connection requests from other computers. In most cases you won&#8217;t need to think about them.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Be sure to make backups of your id_rsa and id_rsa.pub files in a safe place immediately.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Once your key setup is complete, your .ssh folder should look something like this:&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<figure><a href=\"https:\/\/photos5.appleinsider.com\/gallery\/51751-103134-ssh-folder-xl.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/mailinvest.blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/photos5.appleinsider.com\/gallery\/51751-103134-ssh-folder-xl.jpg\" alt=\"\" height=\"312\" loading=\"lazy\" class=\"img-responsive article-image\"\/><\/a><\/figure>\n<\/div>\n<div class=\"col-sm-12\">\n<p>The known_hosts file may or may not get generated by the system until the first time you use SSH to connect to a server, but we&#8217;ll discuss that file below.&#13;<\/p>\n<\/div>\n<p><h2 data-anchor=\"server-side\" id=\"server-side\">Server side<\/h2>\n<p>&#13;<\/p>\n<div class=\"col-sm-12\">\n<p>Now that your keys are in place and ready for use, you must set up whatever server\/service you want to connect to so that they use PKI instead of passwords. How to do this varies depending on your server hosting service.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>If your server host is a web hosting service which offers <a href=\"https:\/\/www.cpanel.net\/\">cPanel<\/a> or a similar web frontend, those services usually offer a section in the cPanel called &#8220;Security&#8221; or &#8220;Terminal&#8221;. You&#8217;ll need to log in to your cPanel first, then go to the Security pane:&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<figure><a href=\"https:\/\/photos5.appleinsider.com\/gallery\/51751-103106-sec-xl.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/mailinvest.blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/photos5.appleinsider.com\/gallery\/51751-103106-sec-xl.jpg\" alt=\"\" height=\"200\" loading=\"lazy\" class=\"img-responsive article-image\"\/><\/a><\/figure>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Next, click on &#8220;SSH Access&#8221;, then click the &#8220;Manage SSH Keys&#8221; button:&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<figure><a href=\"https:\/\/photos5.appleinsider.com\/gallery\/51751-103107-manage-ssh-xl.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/mailinvest.blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/photos5.appleinsider.com\/gallery\/51751-103107-manage-ssh-xl.jpg\" alt=\"\" height=\"127\" loading=\"lazy\" class=\"img-responsive article-image\"\/><\/a><\/figure>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Next, click &#8220;Import Key&#8221;:&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<figure><a href=\"https:\/\/photos5.appleinsider.com\/gallery\/51751-103108-manage-import-xl.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/mailinvest.blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/photos5.appleinsider.com\/gallery\/51751-103108-manage-import-xl.jpg\" alt=\"\" height=\"162\" loading=\"lazy\" class=\"img-responsive article-image\"\/><\/a><\/figure>\n<\/div>\n<div class=\"col-sm-12\">\n<p>On the next page, fill in a name for the key in the top box (the name doesn&#8217;t matter), and in the public key field, paste in your public key:&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<figure><a href=\"https:\/\/photos5.appleinsider.com\/gallery\/51751-103135-manage-import-large-xl.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/mailinvest.blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/photos5.appleinsider.com\/gallery\/51751-103135-manage-import-large-xl.jpg\" alt=\"\" height=\"725\" loading=\"lazy\" class=\"img-responsive article-image\"\/><\/a><\/figure>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Usually this field has a caption of &#8220;Paste the public key into the following text box:&#8221; or something similar.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p><strong>Do not<\/strong> paste anything into the private key text box. This is usually named &#8220;Paste the private key into the following text box:&#8221;.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>While technically your cPanel and web host are secure, you don&#8217;t want to take any chances. Besides, it&#8217;s not needed \u2014  when your computer tries to connect to the server using SSH, the server will ask your local computer for your private key at handshake time.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>If you did enter a <em>key<\/em> password at key generation time, enter it in the &#8220;Passphrase&#8221; field, otherwise leave this field blank.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Next, click the Import, then the Go Back buttons.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Your public key is now imported to your cPanel and web host, but you still need to authorize it before you can use it. On the cPanel page under &#8220;Public Keys&#8221; you&#8217;ll now see your key listed but you&#8217;ll see &#8220;unauthorized&#8221; next to it. Click the Manage button. &#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<figure><a href=\"https:\/\/photos5.appleinsider.com\/gallery\/51751-103109-manage-button-xl.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/mailinvest.blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/photos5.appleinsider.com\/gallery\/51751-103109-manage-button-xl.jpg\" alt=\"\" height=\"92\" loading=\"lazy\" class=\"img-responsive article-image\"\/><\/a><\/figure>\n<\/div>\n<div class=\"col-sm-12\">\n<p>On the next page, click the Authorize button, then the Go Back button. Back on the previous page you should now see &#8220;authorized&#8221; next to your public key in the list.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>If the server you are connecting to doesn&#8217;t provide a cPanel or other web interface and only offers bare metal access, you will need to contact your sever admin to have them install your public key. In most cases on UNIX or Linux servers, this is done in the sshd.conf and ssh.conf files, but your mileage may vary, depending on what OS and server software your server is running.&#13;<\/p>\n<\/div>\n<p><h2 data-anchor=\"connecting\" id=\"connecting\">Connecting<\/h2>\n<p>&#13;<\/p>\n<div class=\"col-sm-12\">\n<p>Now that your keys are installed, and your server knows how to use them, it&#8217;s time to try a connection.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>You can test the connection in Terminal by opening a terminal window and typing &#8220;ssh <a href=\"https:\/\/appleinsider.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"85f0f6e0f7ebe4e8e0c5ecf5a8e4e1e1f7e0f6f6\">[email\u00a0protected]<\/a>&#8221; and pressing <strong>Return<\/strong>.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>In the first case you need to know your server&#8217;s IP address, and in the second case, you need to know your domain name. On cPanel-based systems, the username is usually the same as your cPanel name, but may be different depedning on how your web host company configured your server.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>The default <a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_TCP_and_UDP_port_numbers\">UNIX port<\/a> SSH connects on is port 22, but most web host providers will have changed the SSH port number to something else for security reasons. If this is the case, you need to know the port number and specify it using the -p option in the ssh command. For example:&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>See the &#8220;ssh man&#8221; page for more info on using the -p command. If you don&#8217;t know the port number, you&#8217;ll need to contact your web host provider, or see if it&#8217;s mentioned in their online knowledgebase.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Once the above command is executed, your Mac will initiate an SSH session with the server, starting with a handshake in which it sends your public key. The server will then respond by asking for your Mac&#8217;s private key. The built-in SSH machinery will read it from disk and send it back to the server in the response.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>All of this will happen silently.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Once the server decodes your two keys and verifies them, if it finds they match, it will send a confirmation back to your Mac. If successful, you may see a cryptic message in Terminal such as:&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p><strong>The authenticity of host &#8216;example.domain.com (192.168.2.155)&#8217; can&#8217;t be established. RSA key fingerprint is 45:83:45:4a:e3:29:7e:fa:f3:c3:7d:64:ea:3a:6f:58. Are you sure you want to continue connecting (yes\/no)?<\/strong>&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Type yes and press <strong>Return<\/strong>.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Terminal will most likely print a message similar to: <strong>Warning: Permanently added &#8216;example.domain.com,192.168.2.155&#8217; (RSA) to the list of known hosts<\/strong>.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>You only need to do this the first time you connect to each server via SSH. After that your Mac will have added that server&#8217;s info to your local known_hosts file. Next time you initiate the same SSH connection, it will first look for the server in the known_hosts file. If it finds it, it will connect without displaying any of the above.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Once connected via an SSH connection, all communications between both computers in Terminal including all text and commands you type will be sent and received over a secure, encrypted connection.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Also be aware that if you are using a VPN and it&#8217;s connected in another country, your web host provider may deny all remote SSH connections. This is to prevent hackers in other countries from gaining access to your web host. In such cases, you&#8217;ll have to disable your VPN and try again.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Since we&#8217;re on the subject of VPN&#8217;s it&#8217;s a good time to talk about&#8230;&#13;<\/p>\n<\/div>\n<p><h2 data-anchor=\"ssh-tunneling\" id=\"ssh-tunneling\">SSH Tunneling<\/h2>\n<p>&#13;<\/p>\n<div class=\"col-sm-12\">\n<p>What you did in the above example was to create a connection based on <a href=\"https:\/\/www.ssh.com\/academy\/ssh\/tunneling\">SSH Tunneling<\/a>. Tunneling simply means that a connection has created a secure &#8220;tunnel&#8221; in which all communications in both directions are fully encrypted. Even if a man-in-the-middle attacker intercepts your communications or impersonates you, the data transfered between the two computers is still fully encrypted.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Without access to your private key, an attacker still can&#8217;t decrypt your data.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Most commercial and free VPN clients use such tunnellng on various ports to VPN servers in other countries. In fact, most VPN connections will send and receive data across many such servers per session. In most VPN server configurations, there is also a dedicated SSH server located elsewhere, but SSH may also reside on the same VPN server (which is considered a bad security practice).&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>As your data traverses your VPN, it becomes more and more difficult for anyone eavesdropping on your communications to tell where the data originated, and where it is going. The tunneling encryption adds one more level of security.&#13;<\/p>\n<\/div>\n<p><h2 data-anchor=\"ssh-connections-using-gui-apps\" id=\"ssh-connections-using-gui-apps\">SSH Connections Using GUI Apps<\/h2>\n<p>&#13;<\/p>\n<div class=\"col-sm-12\">\n<p>Where SSH&#8217;s power really shines on the Mac is when using a networking app (such as an <a href=\"https:\/\/en.wikipedia.org\/wiki\/File_Transfer_Protocol\">FTP<\/a> client) with a graphical user interface. In such cases, most apps allow you to specify your public key once, then as soon as you make a new connection it just works &#8211; no passwords, no more prompts, no hassles.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Everything happens behind the scenes which makes connecting a breeze.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>For example, the excellent <a href=\"https:\/\/panic.com\/transmit\/\">Transmit<\/a> app by <a href=\"https:\/\/www.panic.com\/\">Panic<\/a> has a public key button in the connection window:&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<figure><a href=\"https:\/\/photos5.appleinsider.com\/gallery\/51751-103112-gui-1-xl.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/mailinvest.blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/photos5.appleinsider.com\/gallery\/51751-103112-gui-1-xl.jpg\" alt=\"\" height=\"305\" loading=\"lazy\" class=\"img-responsive article-image\"\/><\/a><\/figure>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Clicking the key icon displays a small window which will show your default public key, if it&#8217;s installed on your system:&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<figure><a href=\"https:\/\/photos5.appleinsider.com\/gallery\/51751-103113-gui-2-xl.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/mailinvest.blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/photos5.appleinsider.com\/gallery\/51751-103113-gui-2-xl.jpg\" alt=\"\" height=\"271\" loading=\"lazy\" class=\"img-responsive article-image\"\/><\/a><\/figure>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Click your public key, it will be set, and the small key icon in the connection window will turn green:&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<figure><a href=\"https:\/\/photos5.appleinsider.com\/gallery\/51751-103114-gui-3-xl.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/mailinvest.blog\/wp-content\/themes\/breek\/assets\/images\/transparent.gif\" data-lazy=\"true\" data-src=\"https:\/\/photos5.appleinsider.com\/gallery\/51751-103114-gui-3-xl.jpg\" alt=\"\" height=\"265\" loading=\"lazy\" class=\"img-responsive article-image\"\/><\/a><\/figure>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Now enter your server&#8217;s address, custom SSH port, if any, user name, and path on the server you want to access.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>If all goes well Transmit will connect and you won&#8217;t be prompted for a password. Transmit may prompt you with a GUI version of the &#8220;authenticity of host can&#8217;t be established&#8221; message the first time you connect, but if you confirm the dialog, it will add the server info to the known_hosts file just like in the Terminal example above.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>The next time you make the same connection in Transmit, it should be seamless: no passwords, no prompts, no nothing.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>In order to send and receive all FTP data securely, you must use the SFTP protocol instead of plain FTP.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>You can also save the connection window settings to Favorites in Transmit and then simply select it from the Favorites list next time for an instant connection &#8211; Transmit will remember your key each time automatically.&#13;<\/p>\n<\/div>\n<div class=\"col-sm-12\">\n<p>Using SSH for secure connections can speed up your workflow on the Mac because you won&#8217;t need to enter passwords again. Setup takes a little work, but once your keys are installed and servers configured, you&#8217;ll wonder how you got along without it.<\/p>\n<\/div><\/div>\n<iframe data-lazy=\"true\" data-src=\"https:\/\/www.fiverr.com\/gig_widgets?id=U2FsdGVkX18x7XQvttUTrv1oEqmGNGTgvvCUiUoJ\/AP4z\/UyMz8lXGOLpu15jIMxBbTR0gmD5uBoFvhC4KWeALQRp3h\/X\/AwcVD0K8Wj9H\/ZzYKzcCNHosB9oS4SCJJFWiN85P9ICAc4OgCoE\/wHKIY7CDkf2\/DQ1vqGvk4smVe5cRDEmrLPCWi4FC8p40VUhSmWQ5udCm0zoJtorgWv3vbDQw0kKYkwn39ozAnQXDe+YvWMxkLFWA+O3TFwkJvdkIK+\/AUSnRssPKt5WHY0FhNOxnSPcLslEL4G4\/RfP95ve99U+kRnDy3X+KtzdQLY+u935ghON\/o3UE4IMv9oN6JX9RnxzL\/LRcOgnHigxStSGPKsZYtnz8RWNVT\/rOLAibqiWJadC5MYHRbekF3eg6FOGrQGkXYbsn0+a5aovnlLCbLwIqY9fcS17UX8J235iQ6cdmHNbrPeS84CMm34RA==&affiliate_id=1052423&strip_google_tagmanager=true\" loading=\"lazy\" data-with-title=\"true\" class=\"fiverr_nga_frame\" frameborder=\"0\" height=\"350\" width=\"100%\" referrerpolicy=\"no-referrer-when-downgrade\" data-mode=\"random_gigs\" onload=\" var frame = this; var script = document.createElement('script'); script.addEventListener('load', function() { window.FW_SDK.register(frame); }); script.setAttribute('src', 'https:\/\/www.fiverr.com\/gig_widgets\/sdk'); document.body.appendChild(script); \" ><\/iframe>\n<br \/><a href=\"https:\/\/appleinsider.com\/inside\/macos\/tips\/how-to-use-ssh-for-secure-connections-in-macos?utm_medium=rss\">Source link <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Article Hero Image &#13; &#13; AppleInsider may earn an affiliate commission on purchases made through links on our site.&#13; &#13; The Secure Shell \u2014 SSH&#8230;<\/p>\n","protected":false},"author":1,"featured_media":23815,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-23814","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech-universe"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to use SSH for secure connections in macOS - mailinvest.blog<\/title>\n<meta name=\"description\" content=\"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis.mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what&#039;s new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mailinvest.blog\/index.php\/2022\/12\/15\/how-to-use-ssh-for-secure-connections-in-macos\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use SSH for secure connections in macOS - mailinvest.blog\" \/>\n<meta property=\"og:description\" content=\"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis.mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what&#039;s new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mailinvest.blog\/index.php\/2022\/12\/15\/how-to-use-ssh-for-secure-connections-in-macos\/\" \/>\n<meta property=\"og:site_name\" content=\"mailinvest.blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/freelanceracademic\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-15T20:38:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mailinvest.blog\/wp-content\/uploads\/2022\/12\/51751-103147-lede-xl.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin@mailinvest.blog\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin@mailinvest.blog\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"16 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/12\\\/15\\\/how-to-use-ssh-for-secure-connections-in-macos\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/12\\\/15\\\/how-to-use-ssh-for-secure-connections-in-macos\\\/\"},\"author\":{\"name\":\"admin@mailinvest.blog\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#\\\/schema\\\/person\\\/012701c4c204d4e4ebd34f926cfd31a4\"},\"headline\":\"How to use SSH for secure connections in macOS\",\"datePublished\":\"2022-12-15T20:38:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/12\\\/15\\\/how-to-use-ssh-for-secure-connections-in-macos\\\/\"},\"wordCount\":3213,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/12\\\/15\\\/how-to-use-ssh-for-secure-connections-in-macos\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/mailinvest.blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/51751-103147-lede-xl.jpg\",\"articleSection\":[\"Tech Universe\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/12\\\/15\\\/how-to-use-ssh-for-secure-connections-in-macos\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/12\\\/15\\\/how-to-use-ssh-for-secure-connections-in-macos\\\/\",\"url\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/12\\\/15\\\/how-to-use-ssh-for-secure-connections-in-macos\\\/\",\"name\":\"How to use SSH for secure connections in macOS - mailinvest.blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/12\\\/15\\\/how-to-use-ssh-for-secure-connections-in-macos\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/12\\\/15\\\/how-to-use-ssh-for-secure-connections-in-macos\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/mailinvest.blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/51751-103147-lede-xl.jpg\",\"datePublished\":\"2022-12-15T20:38:15+00:00\",\"description\":\"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis.mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what's new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/12\\\/15\\\/how-to-use-ssh-for-secure-connections-in-macos\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/12\\\/15\\\/how-to-use-ssh-for-secure-connections-in-macos\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/12\\\/15\\\/how-to-use-ssh-for-secure-connections-in-macos\\\/#primaryimage\",\"url\":\"https:\\\/\\\/mailinvest.blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/51751-103147-lede-xl.jpg\",\"contentUrl\":\"https:\\\/\\\/mailinvest.blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/51751-103147-lede-xl.jpg\",\"width\":1200,\"height\":768},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/12\\\/15\\\/how-to-use-ssh-for-secure-connections-in-macos\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/mailinvest.blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to use SSH for secure connections in macOS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#website\",\"url\":\"https:\\\/\\\/mailinvest.blog\\\/\",\"name\":\"mailinvest.blog\",\"description\":\"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis. mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what&#039;s new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.\",\"publisher\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/mailinvest.blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#organization\",\"name\":\"mailinvest\",\"url\":\"https:\\\/\\\/mailinvest.blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/mailinvest.blog\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/default.png\",\"contentUrl\":\"https:\\\/\\\/mailinvest.blog\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/default.png\",\"width\":1000,\"height\":1000,\"caption\":\"mailinvest\"},\"image\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/freelanceracademic\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#\\\/schema\\\/person\\\/012701c4c204d4e4ebd34f926cfd31a4\",\"name\":\"admin@mailinvest.blog\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/98ed217bd0f3d6a6dcae2d9b0c76e305b049a07275e315e1407e19ec8b08e139?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/98ed217bd0f3d6a6dcae2d9b0c76e305b049a07275e315e1407e19ec8b08e139?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/98ed217bd0f3d6a6dcae2d9b0c76e305b049a07275e315e1407e19ec8b08e139?s=96&d=mm&r=g\",\"caption\":\"admin@mailinvest.blog\"},\"sameAs\":[\"https:\\\/\\\/mailinvest.blog\",\"admin@mailinvest.blog\"],\"url\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/author\\\/adminmailinvest-blog\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to use SSH for secure connections in macOS - mailinvest.blog","description":"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis.mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what's new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mailinvest.blog\/index.php\/2022\/12\/15\/how-to-use-ssh-for-secure-connections-in-macos\/","og_locale":"en_US","og_type":"article","og_title":"How to use SSH for secure connections in macOS - mailinvest.blog","og_description":"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis.mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what's new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.","og_url":"https:\/\/mailinvest.blog\/index.php\/2022\/12\/15\/how-to-use-ssh-for-secure-connections-in-macos\/","og_site_name":"mailinvest.blog","article_publisher":"https:\/\/www.facebook.com\/freelanceracademic\/","article_published_time":"2022-12-15T20:38:15+00:00","og_image":[{"width":1200,"height":768,"url":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2022\/12\/51751-103147-lede-xl.jpg","type":"image\/jpeg"}],"author":"admin@mailinvest.blog","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin@mailinvest.blog","Est. reading time":"16 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mailinvest.blog\/index.php\/2022\/12\/15\/how-to-use-ssh-for-secure-connections-in-macos\/#article","isPartOf":{"@id":"https:\/\/mailinvest.blog\/index.php\/2022\/12\/15\/how-to-use-ssh-for-secure-connections-in-macos\/"},"author":{"name":"admin@mailinvest.blog","@id":"https:\/\/mailinvest.blog\/#\/schema\/person\/012701c4c204d4e4ebd34f926cfd31a4"},"headline":"How to use SSH for secure connections in macOS","datePublished":"2022-12-15T20:38:15+00:00","mainEntityOfPage":{"@id":"https:\/\/mailinvest.blog\/index.php\/2022\/12\/15\/how-to-use-ssh-for-secure-connections-in-macos\/"},"wordCount":3213,"commentCount":0,"publisher":{"@id":"https:\/\/mailinvest.blog\/#organization"},"image":{"@id":"https:\/\/mailinvest.blog\/index.php\/2022\/12\/15\/how-to-use-ssh-for-secure-connections-in-macos\/#primaryimage"},"thumbnailUrl":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2022\/12\/51751-103147-lede-xl.jpg","articleSection":["Tech Universe"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/mailinvest.blog\/index.php\/2022\/12\/15\/how-to-use-ssh-for-secure-connections-in-macos\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/mailinvest.blog\/index.php\/2022\/12\/15\/how-to-use-ssh-for-secure-connections-in-macos\/","url":"https:\/\/mailinvest.blog\/index.php\/2022\/12\/15\/how-to-use-ssh-for-secure-connections-in-macos\/","name":"How to use SSH for secure connections in macOS - mailinvest.blog","isPartOf":{"@id":"https:\/\/mailinvest.blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mailinvest.blog\/index.php\/2022\/12\/15\/how-to-use-ssh-for-secure-connections-in-macos\/#primaryimage"},"image":{"@id":"https:\/\/mailinvest.blog\/index.php\/2022\/12\/15\/how-to-use-ssh-for-secure-connections-in-macos\/#primaryimage"},"thumbnailUrl":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2022\/12\/51751-103147-lede-xl.jpg","datePublished":"2022-12-15T20:38:15+00:00","description":"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis.mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what's new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.","breadcrumb":{"@id":"https:\/\/mailinvest.blog\/index.php\/2022\/12\/15\/how-to-use-ssh-for-secure-connections-in-macos\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mailinvest.blog\/index.php\/2022\/12\/15\/how-to-use-ssh-for-secure-connections-in-macos\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mailinvest.blog\/index.php\/2022\/12\/15\/how-to-use-ssh-for-secure-connections-in-macos\/#primaryimage","url":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2022\/12\/51751-103147-lede-xl.jpg","contentUrl":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2022\/12\/51751-103147-lede-xl.jpg","width":1200,"height":768},{"@type":"BreadcrumbList","@id":"https:\/\/mailinvest.blog\/index.php\/2022\/12\/15\/how-to-use-ssh-for-secure-connections-in-macos\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mailinvest.blog\/"},{"@type":"ListItem","position":2,"name":"How to use SSH for secure connections in macOS"}]},{"@type":"WebSite","@id":"https:\/\/mailinvest.blog\/#website","url":"https:\/\/mailinvest.blog\/","name":"mailinvest.blog","description":"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis. mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what&#039;s new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.","publisher":{"@id":"https:\/\/mailinvest.blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mailinvest.blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/mailinvest.blog\/#organization","name":"mailinvest","url":"https:\/\/mailinvest.blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mailinvest.blog\/#\/schema\/logo\/image\/","url":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2022\/01\/default.png","contentUrl":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2022\/01\/default.png","width":1000,"height":1000,"caption":"mailinvest"},"image":{"@id":"https:\/\/mailinvest.blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/freelanceracademic\/"]},{"@type":"Person","@id":"https:\/\/mailinvest.blog\/#\/schema\/person\/012701c4c204d4e4ebd34f926cfd31a4","name":"admin@mailinvest.blog","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/98ed217bd0f3d6a6dcae2d9b0c76e305b049a07275e315e1407e19ec8b08e139?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/98ed217bd0f3d6a6dcae2d9b0c76e305b049a07275e315e1407e19ec8b08e139?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/98ed217bd0f3d6a6dcae2d9b0c76e305b049a07275e315e1407e19ec8b08e139?s=96&d=mm&r=g","caption":"admin@mailinvest.blog"},"sameAs":["https:\/\/mailinvest.blog","admin@mailinvest.blog"],"url":"https:\/\/mailinvest.blog\/index.php\/author\/adminmailinvest-blog\/"}]}},"_links":{"self":[{"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/posts\/23814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/comments?post=23814"}],"version-history":[{"count":0,"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/posts\/23814\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/media\/23815"}],"wp:attachment":[{"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/media?parent=23814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/categories?post=23814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/tags?post=23814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}