User Tools

Site Tools


wiki:sshsetup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:sshsetup [2021/08/03 01:54] – [Key Based Authentication] guidebeaconwiki:sshsetup [2021/08/03 03:15] (current) guidebeacon
Line 2: Line 2:
  
 These steps are to set up an ssh client These steps are to set up an ssh client
- 
- so tom can have a simple desktop shortcut to cause the database to sync from production to dev. 
  
 These steps assume the IP you are connecting from is allowed to connect to the server in the first place. These steps assume the IP you are connecting from is allowed to connect to the server in the first place.
 +
 +All steps assume dev.beacontechnology.com the same steps can be repeated for cpanel.beacontechnology.com
  
 ===== General Setup ===== ===== General Setup =====
Line 23: Line 23:
   - Where it says Saved Sessions, enter a name to know this server by. Using the hostname is fine.   - Where it says Saved Sessions, enter a name to know this server by. Using the hostname is fine.
   - Click Save   - Click Save
 +
 +You can now click Open to open the connection
  
 ===== Connecting to a server ===== ===== Connecting to a server =====
Line 33: Line 35:
  
 Key Based authentication allows the user to log in with a key rather than a password. This is more secure and allows unprompted access to the server. Key Based authentication allows the user to log in with a key rather than a password. This is more secure and allows unprompted access to the server.
 +
 +==== Generate SSH Key ====
 +
  
 Open ''PuTTYgen'' Open ''PuTTYgen''
Line 39: Line 44:
   - click generate.   - click generate.
   - move the mouse around until it is done.   - move the mouse around until it is done.
-  - Where it says "Key comment:" paste in "dev.beacontechnology.com" without quotes+  - Where it says "Key comment:" paste in "dev.beacontechnology.com" without quotes or whatever server
   - click save private key. Select yes without a password.   - click save private key. Select yes without a password.
   - Where it says "File name" paste without quotes ''%%"%UserProfile%\dev.beacontechnology.com.ppk"%%''   - Where it says "File name" paste without quotes ''%%"%UserProfile%\dev.beacontechnology.com.ppk"%%''
Line 46: Line 51:
   - You can now close this window   - You can now close this window
  
-When we get the key, we will install it into the file located at: "/home/tom/.ssh/authorized_keys"+When we get the key, we will install it into the file located at: ''$HOME/.ssh/authorized_keys''
 This will permit anyone with the matching private key to log in. This will permit anyone with the matching private key to log in.
  
-After that is donewe need to create the shortcut to sync the databases.+==== SSH Login Shortcut ==== 
 + 
 +Right click on desktop in empty spaceand click New > Shortcut 
 + 
 +Paste in: 
 + 
 +<code> 
 +pageant.exe "%UserProfile%\dev.beacontechnology.com.ppk" -c putty.exe tom@dev.beacontechnology.com 
 +</code> 
 + 
 +Next 
 + 
 +Name: ''SSH Dev Beacon'' 
 + 
 +Finish 
 + 
 + 
 +==== BeaconSync Shortcut ==== 
 + 
 + 
 +On an empty space on the desktop, right click New > Shortcut 
 + 
 +Type the location of the item: 
 + 
 +<code> 
 +pageant.exe "%UserProfile%\dev.beacontechnology.com.ppk" -c plink.exe -ssh -batch tom@dev.beacontechnology.com "sudo /root/scripts/beaconsync.sh" 
 +</code> 
 + 
 +Click next 
 + 
 +Type a Name for this shortcut: ''BeaconSync''
  
-  - On an empty space on the desktop, right click New > Shortcut +Finish
-  - Type the location of the item: +
-  - ''pageant.exe '%UserProfile%\dev.beacontechnology.com.ppk' -c plink.exe -ssh -batch tom@dev.beacontechnology.com "sudo /root/scripts/beaconsync.sh"'' +
-  - Click next +
-  - Type a Name for this shortcut: BeaconSync +
-  - Finish+
  
 You can now just open this shortcut to sync the databases You can now just open this shortcut to sync the databases
wiki/sshsetup.1627955659.txt.gz · Last modified: 2021/08/03 01:54 by guidebeacon

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki