How to Upload Website to Putty Ssh Server
Knowing how to connect to your website over SSH authenticating with Public/Individual Key pairing is a groovy skill. Authenticating and working on your website over SSH is more than secure since your connection is encrypted.
As well, with SSH you volition be able to perform some cool tasks not bachelor to you over a graphical interface. And you will practice them much faster.
That's why some content management systems offer control line interface to their users. Like, for example, WP-CLI for WordPress or Drush for Drupal.
In this tutorial, you volition learn how to connect to your spider web server over SSH with the Public/Private Key pairing using Windows free SSH customer PuTTY.
The procedure is simple. Yous begin by creating a Public/Private Key pair under your web hosting control panel. You so move to your own Windows box. To install and configure PuTTY.
You finish the job by copying your Public Key from PuTTY into your server's authorized_key text file. That'southward it. You are then ready to connect with Public/Private key pairing over SSH using PuTTY.
Note: this tutorial demonstrates how to create SSH connection with PuTTY to a server hosted past SiteGround. If you host your site somewhere else, this process may not work for you lot. In such case, please consult your hosting Support documentation or Support staff.
Let's go started.
Footstep #1. Create Your Private SSH Key
- In your CPanel click SSH/Shell Access
- You will see the Generate new SSH key pair web form. Make full in the First Name, Terminal Name, Email, Cardinal Password and Password (Once again)fields
- Click Generate
In a few seconds, you will encounter The fundamental has been successfully added! bulletin.
- Click Become Back
You lot will see familiarGenerate new SSH cardinal pair page. Your Private Key is displayed at the bottom of the page, in the Manage electric current keys department.
Practiced job! You only created your Private SSH Key. Yous volition create your Public SSH key in a few minutes. For at present, let's move from your web server to your estimator.
Step #2. Install and Configure PuTTY
- Download PuTTY from this site and install information technology on your Windows box.
In one case you installed it, you should see PuTTY and its tools displayed in your Windows Showtime menu.
- Launch the PuTTYgen tool
- Go dorsum to your hosting CPanel > SSH/Beat Access
- Click Private Key
You will see your SSH Private Key encrypted text displayed in a text box.
- Re-create it into your clipboard
- Open up Windows Notepad
- Paste the Private Key text into it
- Relieve the file as my_private_key.ppk to your Windows Desktop
- Become dorsum to PuTTYgen
- Click File > Load private primal
PuTTYgen will open the Load individual primal box.
- Select my_private_key.ppk file from your Desktop
- Click Open
Yous will see the PuTTYgen: Enter Passphrase prompt box.
- Enter into the box the aforementioned passphrase, yous entered when you were creating your Private key in your CPanel a few infinitesimal ago
- Click OK
PuTTYgen will display Successfully imported foreign key find.
- Click OK to close the Notice
- Click Salve private key
You will come across the Save private key as: box with my_private_key.ppk file in it.
- Ignore my_private_key.ppk file. Blazon in my_putty.ppk into the File name: field
- Click Relieve
You will see PuTTY Key Generator interface.
- Select the Public fundamental text displayed within the Publc fundamental for pasting into OpenSSH authorized_keys file: box
- Copy the Public cardinal into your clipboard
- Become back to your hosting CPanel > SSH/Vanquish Admission
- In the Upload SSH central department paste the Public key you just copied into the Public Fundamental (DSA or RSA bigger than 2048 bits only): text surface area
- Click Upload
You will meet The key you lot uploaded has been successfully added to your account! message.
- Click Go Dorsum
- From your Window Start menu launchPageant
- Click Add together Key
You volition see familiar Select Private Key File box.
- Select my_putty.ppk file
- Click Open
Yous will see the Pageant: Enter passphrase prompt box.
- Enter the passphrase you lot entered creating your Individual key at the outset of this process
- Click OK
You will now see the cardinal listed inside the Pageant Key List.
- Shut thisPageant window
Excellent! You are now all set to run an SSH connection to your web server with Public/Private keys using PuTTY.
Step #3. Connect to Your Site over SSH with PuTTY
- From your Windows Start carte du jour launch PuTTY
You will see PuTTY Configuration window.
- Click Session
- Enter <your hosting username>@<your_site_domain> into the Host name (or IP accost) field. Make sure in the Connexion type: section the SSH radio push button is selected
- Under the Connectedness tab, click on the + sign next to SSH
- Click Auth
You will encounter the Options controlling SSH hallmark window.
- Click Browse
You volition see the Select private key file window.
- Select my_putty.ppk file
- Click Open
- Click Open once once more
You will now run across the PuTTY control line terminal, resembling the one in the image below.
Congratulations! Yous just connected from your Windows box to your spider web server over SSH with Public/Private Primal pairing using PuTTY SSH client.
Source: https://ostraining.com/blog/tools-blog/how-to-connect-to-web-server-over-ssh-using-putty-on-windows/
0 Response to "How to Upload Website to Putty Ssh Server"
Post a Comment