
If you set a password, you’ll have to enter it every time you try to authenticate with the key file.
PUTTY FOR MAC YOSEMITE PASSWORD
Ssh-keygen will also ask if you want to set a password for the key.
PUTTY FOR MAC YOSEMITE MAC
That way, if your Mac workstation is ever compromised, you minimise the risk of access to servers used for past projects where your account has been inadvertently left active. While you can simply select the default, it might be a good idea to create a key file specifically for each project.
PUTTY FOR MAC YOSEMITE MAC OS X
The default for key files on Mac OS X is /Users/username/.ssh/id_rsa.pub. You’ll be asked to enter a file name for the key. The -t flag specifies that you’re creating an RSA key. Look for the following lines and uncomment or add them: Configure the serverįirst make sure your server is configured to accept key-based authentication. On the server terminal, open a secure shell to the server as you normally would. Edit the configuration file for your OpenSSH Daemon at /etc/ssh/sshd_config. We’ll be moving back-and-forth between the them so for clarity, open up two terminal windows: one will be used for configuring the server, which I’ll refer to as your server terminal and another for configuring your Mac workstation, which I’ll call the Mac terminal.


If this sounds familiar, this guide is for you.

Repeatedly entering secure long random passwords is becoming a hassle. You generally work on multiple servers per project. Most likely you host websites for your clients or employer on *nix servers controlled through a command line interface. The instructions here are aimed at Mac OS X based web developers with at least a moderate level of systems administration knowledge. My goal is to outline the steps needed so you can start using key-based authentication on your Mac. If you’re reading this, you probably already have a basic grounding on SSH, SFTP and the implications of SSH key-based authentication. I won’t go into any detail about these protocols or try to make a case for using them. This is a guide for setting up an Apple Mac OS X workstation with SSH key-based authentication to a remote FreeBSD server.
