First open Putty and specify a host name (usually an IP address or could be a domain name) and also specify a name for the Saved Session. Then you will be able to open the session next time just by double clicking the session name in the list. |
Next, open the Connection > Data option and enter the username for the session. |
Last, open the Connection > SSH >Auth menu and specify the PPK file you want to use. Again remember the location will be something like C:Usersuser-nameAppDataLocalVirtualStoreProgram Files (x86)PuTTYname-of-key.ppk Once finished, go back to the session screen and save the session. |
On this opening screen of WinSCP, Select SCP as the file protocol, enter a host name (either an IP address or a domain name) and enter a username. Click on the advanced button. |
Click on the SCP/Shell menu. If you don’t see that option it means you didn’t select SCP file protocol above. Change the Shell to use Sudo su – If you don’t do that then you won’t be able to edit most files (outside the home folder for the user) and you won’t be able to write to most folders either. |
Select Authentication from the menu and configure your private key file as you did in PuTTY. Then click OK and click on Save when you return to the main menu and enter a name for the session. You won’t need to specify a password for the session if you are using a PPK file. |
ssh -1 filename-with -open-sshkey username@ip-address-of-machine-to-connect-to
ssh-keygen -R ip-address-you-are-connecting-to
chmod 400 name-of-file
Homebrew
if not already installed. See the site here.
/usr/bin/ruby -e '$(curl -fsSL https:// raw.githubusercontent.com/Homebrew/install/master/install)'
brew install putty