

Once the key generation has completed, PuTTYgen will populate the “Public key”, the “Key fingerprint”, and the “Key comment” values. PuTTYgen will ask you to move the mouse over a selected area to generate the key. For increased security, we recommend increasing this value to 4096.Ĭlick Generate. On Windows 10, PuTTYgen defaults to generating an RSA key of 2048 bits.

The quickest way to run PuTTYgen on Windows 10 is to click the Start button, type putty, and then select “PuTTYgen” from the results. PuTTY has a bundled PuTTYgen application that allows you to generate your public and private keys. To get PuTTY, browse to the download page and download and install the latest version. However, you can use an application called PuTTY to generate an SSH key and use it to connect to your server’s command line. Unlike macOS or Linux-based distributions, Windows does not come with a built-in terminal application that you can use to access an Ubuntu server via SSH, using public/private key authentication. pscp -P 22 ~/Desktop/a-file.txtĪfter hitting Enter, type or paste in the password when it prompts you.Connect to Your Server via SSH on Windows In the command prompt, execute the following command to copy a remote file on server with IP address of 45.32.218.126 called a-file.txt onto the desktop of your local computer. pscp -P 22 demo-file.zip hitting Enter, type or paste in the password when it prompts you. In the command prompt, execute the following command to copy a local file called demo-file.zip into the /root/ directory of a remote server with IP address of 45.32.218.126. You can use the dir command to list out the files and folder on your desktop: dir How to Copy Files from Local to Remote In the command prompt window, change the directory to your desktop like this: cd Desktop

Open command prompt by searching for cmd in the start menu. To use pscp on Windows, you have to execute it as a command through the command prompt. This is a standalone executable, so you can run it from anywhere on your computer. You’ll want the 32 bit version if you do not have a 64 bit computer. Download PSCPįirst download Putty Secure Copy from the official website here.

Please note that you will need to know the credentials (username and password) of the remote server for this to work properly. To do this, you can use a free, open-source program called Putty Secure Copy or pscp, for short. In this tutorial, you will learn how to copy files from Windows to a remote server, and vice versa from a remote server to Windows.
