How to Upload Website to Putty Ssh Server

How to Connect to Web Server Over SSH with Private/Public Keys Using PuTTY on Windows

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

SSH/Shell Access in CPanel

  • 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

Fill in the form and click Generate

In a few seconds, you will encounter The fundamental has been successfully added! bulletin.

  • Click Become Back

The key has been successfully added

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.

The keys created and displayed

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.

PuTTY installed and displayed in Windows Start menu

  • Launch the PuTTYgen tool
  • Go dorsum to your hosting CPanel > SSH/Beat Access
  • Click Private Key

Click on the Private Key link

You will see your SSH Private Key encrypted text displayed in a text box.

  • Re-create it into your clipboard

Copy your private key into clipboard

  • Open up Windows Notepad
  • Paste the Private Key text into it
  • Relieve the file as my_private_key.ppk to your Windows Desktop

Save the file as my_private_key.ppk

  • Become dorsum to PuTTYgen
  • Click File > Load private primal

Go File > Load private key

PuTTYgen will open the Load individual primal box.

  1. Select my_private_key.ppk file from your Desktop
  2. Click Open

Select my_private_key file and click Open

Yous will see the PuTTYgen: Enter Passphrase prompt box.

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.

PuTTYgen notice about successfully imported key

  • Click OK to close the Notice
  • Click Salve private key

Click the Save private key button

You will come across the Save private key as: box with my_private_key.ppk file in it.

The "Save private key as:" box

  • Ignore my_private_key.ppk file. Blazon in my_putty.ppk into the File name: field
  • Click Relieve

Enter my_putty.ppk and click Save

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

Select and copy the public key

  • 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

Paste in the public key

You will meet The key you lot uploaded has been successfully added to your account! message.

  • Click Go Dorsum

The public key has been successfully uploaded

  • From your Window Start menu launchPageant

Launch Pageant

  • Click Add together Key

Click the Add Key button

You volition see familiar Select Private Key File box.

  1. Select my_putty.ppk file
  2. Click Open

Select my_putty.ppk file and click the Open button

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

Enter your passphrase and click OK

You will now see the cardinal listed inside the Pageant Key List.

The key has been listed

  • 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

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

Enter your username@domain

  • Under the Connectedness tab, click on the + sign next to SSH

Click on the plus sign next to the SSH

  • Click Auth

Click on the Auth

You will encounter the Options controlling SSH hallmark window.

  • Click Browse

Click the Browse button

You volition see the Select private key file window.

  1. Select my_putty.ppk file
  2. Click Open

Select my_putty.ppk file and click the Open button

  • Click Open once once more

Click the Open button

You will now run across the PuTTY control line terminal, resembling the one in the image below.

You will see PuTTY command line terminal

Congratulations! Yous just connected from your Windows box to your spider web server over SSH with Public/Private Primal pairing using PuTTY SSH client.

  • Alex Smirnov

    Born from Ukrainian mother and Russian father, Alex migrated to the United Kingdom in 1999. He is a self-taught Microsoft Certified Professional. He enjoys learning content management systems and helping web site developers brand the most of them.

harpertany1981.blogspot.com

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

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel