{"id":9314,"date":"2019-02-08T19:35:22","date_gmt":"2019-02-08T19:35:22","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=9314"},"modified":"2019-02-10T05:27:05","modified_gmt":"2019-02-10T05:27:05","slug":"how-to-install-and-use-putty-on-linux","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/02\/08\/how-to-install-and-use-putty-on-linux\/","title":{"rendered":"How To Install And Use PuTTY On Linux"},"content":{"rendered":"<p class=\"post-byline\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-thumb-large size-thumb-large wp-post-image tc-smart-load-skip tc-smart-loaded\" style=\"font-size: 1rem;\" src=\"https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-720x340.png\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" srcset=\"https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-720x340.png 720w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-520x245.png 520w\" alt=\"install putty on Linux\" width=\"720\" height=\"340\" \/><\/p>\n<p><strong>PuTTY<\/strong>\u00a0is a free and open source GUI client that supports wide range of protocols including SSH, Telnet, Rlogin and serial for Windows and Unix-like operating systems. Generally, Windows admins use PuTTY as a SSH and telnet client to access the remote Linux servers from their local Windows systems. However, PuTTY is not limited to Windows. It is also popular among Linux users as well.\u00a0 This guide explains how to install PuTTY on Linux and how to access and manage the remote Linux servers using PuTTY.<\/p>\n<h4 class=\"fittexted_for_content_h4\">Install PuTTY on Linux<\/h4>\n<p>PuTTY is available in the official repositories of most Linux distributions. For instance, you can install PuTTY on Arch Linux and its variants using the following command:<\/p>\n<pre>$ sudo pacman -S putty<\/pre>\n<p>On Debian, Ubuntu, Linux Mint:<\/p>\n<pre>$ sudo apt install putty<\/pre>\n<h4 class=\"fittexted_for_content_h4\">How to use PuTTY to access remote Linux systems<\/h4>\n<p>Once PuTTY is installed, launch it from the menu or from your application launcher. Alternatively, you can launch it from the Terminal by running the following command:<\/p>\n<pre>$ putty<\/pre>\n<p>This is how PuTTY default interface looks like.<\/p>\n<div id=\"attachment_16587\" class=\"wp-caption aligncenter\"><a class=\"\" title=\"\" href=\"http:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-default-interface.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-16587 tc-smart-load-skip tc-smart-loaded\" src=\"http:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-default-interface.png\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" srcset=\"https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-default-interface.png 622w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-default-interface-150x150.png 150w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-default-interface-300x300.png 300w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-default-interface-160x160.png 160w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-default-interface-320x320.png 320w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-default-interface-520x520.png 520w\" alt=\"putty default interface\" width=\"622\" height=\"622\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">putty default interface<\/p>\n<\/div>\n<p>As you can see, most of the options are self-explanatory. On the left pane of the PuTTY interface, you can do\/edit\/modify various configurations such as,<\/p>\n<ol>\n<li>PuTTY session logging,<\/li>\n<li>Options for controlling the terminal emulation, control and change effects of keys,<\/li>\n<li>Control terminal bell sounds,<\/li>\n<li>Enable\/disable Terminal advanced features,<\/li>\n<li>Set the size of PuTTY window,<\/li>\n<li>Control the scrollback in PuTTY window (Default is 2000 lines),<\/li>\n<li>Change appearance of PuTTY window and cursor,<\/li>\n<li>Adjust windows border,<\/li>\n<li>Change fonts for texts in PuTTY window,<\/li>\n<li>Save login details,<\/li>\n<li>Set proxy details,<\/li>\n<li>Options to control various protocols such as SSH, Telnet, Rlogin, Serial etc.<\/li>\n<li>And more.<\/li>\n<\/ol>\n<p>All options are categorized under a distinct name for ease of understanding.<\/p>\n<h4 class=\"fittexted_for_content_h4\">Access a remote Linux server using PuTTY<\/h4>\n<p>Click on the\u00a0<strong>Session<\/strong>\u00a0tab on the left pane. Enter the hostname (or IP address) of your remote system you want to connect to. Next choose the connection type, for example Telnet, Rlogin, SSH etc. The default port number will be automatically selected depending upon the connection type you choose. For example if you choose SSH, port number 22 will be selected. For Telnet, port number 23 will be selected and so on. If you have changed the default port number, don\u2019t forget to mention it in the\u00a0<strong>Port<\/strong>\u00a0section. I am going to access my remote via SSH, hence I choose SSH connection type. After entering the Hostname or IP address of the system, click\u00a0<strong>Open<\/strong>.<\/p>\n<div id=\"attachment_16588\" class=\"wp-caption aligncenter\"><a class=\"\" title=\"\" href=\"http:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-1.png\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-16588 tc-smart-load-skip tc-smart-loaded\" src=\"http:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-1.png\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" srcset=\"https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-1.png 622w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-1-150x150.png 150w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-1-300x300.png 300w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-1-160x160.png 160w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-1-320x320.png 320w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-1-520x522.png 520w\" alt=\"putty 1\" width=\"622\" height=\"624\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Connect to remote system using putty<\/p>\n<\/div>\n<p>If this is the first time you have connected to this remote system, PuTTY will display a security alert dialog box that asks whether you trust the host you are connecting to.\u00a0 Click\u00a0<strong>Accept<\/strong>\u00a0to add the remote system\u2019s host key to the PuTTY\u2019s cache:<\/p>\n<p><a class=\"\" title=\"\" href=\"http:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-2.png\" data-rel=\"lightbox-image-2\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-16589 tc-smart-load-skip tc-smart-loaded\" src=\"http:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-2.png\" sizes=\"auto, (max-width: 483px) 100vw, 483px\" srcset=\"https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-2.png 483w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-2-300x205.png 300w\" alt=\"putty 2\" width=\"483\" height=\"330\" \/><\/a><\/p>\n<p>Next enter your remote system\u2019s user name and password. Congratulations! You\u2019ve successfully connected to your remote system via SSH using PuTTY.<\/p>\n<div id=\"attachment_16590\" class=\"wp-caption aligncenter\"><a class=\"\" title=\"\" href=\"http:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-3.png\" data-rel=\"lightbox-image-3\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-16590 tc-smart-load-skip tc-smart-loaded\" src=\"http:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-3.png\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" srcset=\"https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-3.png 496w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-3-300x237.png 300w\" alt=\"putty 3\" width=\"496\" height=\"392\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">SSH to remote system using putty<\/p>\n<\/div>\n<p><strong>Access remote systems configured with key-based authentication<\/strong><\/p>\n<p>Some Linux administrators might have configured their remote servers with key-based authentication. For example, when accessing AMS instances from PuTTY, you need to specify the key file\u2019s location. PuTTY supports public key authentication and uses its own key format (<strong>.ppk<\/strong>\u00a0files).<\/p>\n<p>Enter the hostname or IP address in the Session section. Next, In the\u00a0<b>Category<\/b>\u00a0pane, expand\u00a0<b>Connection<\/b>, expand\u00a0<b>SSH<\/b>, and then choose\u00a0<b>Auth<\/b>. Browse the location of the\u00a0<strong>.ppk<\/strong>\u00a0key file and click\u00a0<strong>Open<\/strong>.<\/p>\n<p><a class=\"\" title=\"\" href=\"http:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-4.png\" data-rel=\"lightbox-image-4\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-16591 tc-smart-load-skip tc-smart-loaded\" src=\"http:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-4.png\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" srcset=\"https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-4.png 622w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-4-300x281.png 300w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-4-520x487.png 520w\" alt=\"putty 4\" width=\"622\" height=\"583\" \/><\/a><\/p>\n<p>Click Accept to add the host key if it is the first time you are connecting to the remote system. Finally, enter the remote system\u2019s passphrase (if the key is protected with a passphrase while generating it) to connect.<\/p>\n<p><strong>Save PuTTY sessions<\/strong><\/p>\n<p>Sometimes, you want to connect to the remote system multiple times. If so, you can save the session and load it whenever you want without having to type the hostname or ip address, port number every time.<\/p>\n<p>Enter the hostname (or IP address) and provide a session name and click\u00a0<strong>Save<\/strong>. If you have key file, make sure you have already given the location before hitting the Save button.<\/p>\n<p><a class=\"\" title=\"\" href=\"http:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-5.png\" data-rel=\"lightbox-image-5\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-16592 tc-smart-load-skip tc-smart-loaded\" src=\"http:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-5.png\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" srcset=\"https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-5.png 622w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-5-150x150.png 150w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-5-300x300.png 300w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-5-160x160.png 160w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-5-320x320.png 320w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/02\/putty-5-520x518.png 520w\" alt=\"putty 5\" width=\"622\" height=\"620\" \/><\/a><\/p>\n<p>Now, choose session name under the\u00a0<strong>Saved sessions<\/strong>\u00a0tab and click\u00a0<strong>Load<\/strong>\u00a0and click\u00a0<strong>Open<\/strong>\u00a0to launch it.<\/p>\n<p><strong>Transferring files to remote systems using the PuTTY Secure Copy Client (pscp)<\/strong><\/p>\n<p>Usually, the Linux users and admins use\u00a0<strong>\u2018scp\u2019<\/strong>\u00a0command line tool to transfer files from local Linux system to the remote Linux servers. PuTTY does have a dedicated client named\u00a0<strong>PuTTY Secure Copy Clinet<\/strong>\u00a0(<strong>PSCP<\/strong>\u00a0in short) to do this job. If you\u2019re using windows os in your local system, you may need this tool to transfer files from local system to remote systems. PSCP can be used in both Linux and Windows systems.<\/p>\n<p>The following command will copy\u00a0<strong>file.txt<\/strong>\u00a0to my remote Ubuntu system from Arch Linux.<\/p>\n<pre>$ pscp -i test.ppk file.txt sk@192.168.225.22:\/home\/sk\/<\/pre>\n<p>Here,<\/p>\n<ul>\n<li><strong>-i test.ppk<\/strong>\u00a0: Key file to access remote system,<\/li>\n<li><strong>file.txt<\/strong>\u00a0: file to be copied to remote system,<\/li>\n<li><strong>sk@192.168.225.22<\/strong>\u00a0: username and ip address of remote system,<\/li>\n<li><strong>\/home\/sk\/<\/strong>\u00a0: Destination path.<\/li>\n<\/ul>\n<p>To copy a directory. use\u00a0<strong>-r<\/strong>\u00a0(recursive) option like below:<\/p>\n<pre>$ pscp -i test.ppk -r dir\/ sk@192.168.225.22:\/home\/sk\/<\/pre>\n<p>To transfer files from Windows to remote Linux server using pscp, run the following command from command prompt:<\/p>\n<pre>pscp -i test.ppk c:\\documents\\file.txt.txt sk@192.168.225.22:\/home\/sk\/<\/pre>\n<p>You know now what is PuTTY, how to install and use it to access remote systems. Also, you have learned how to transfer files to the remote systems from the local system using pscp program.<\/p>\n<p>And, that\u2019s all for now. Hope this was useful. More good stuffs to come. Stay tuned!<\/p>\n<p>Cheers!<\/p>\n<p><strong>Resource:<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/\" target=\"_blank\" rel=\"noopener\"><strong>PuTTY Website<\/strong><\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.ostechnix.com\/how-to-install-and-use-putty-on-linux\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PuTTY\u00a0is a free and open source GUI client that supports wide range of protocols including SSH, Telnet, Rlogin and serial for Windows and Unix-like operating systems. Generally, Windows admins use PuTTY as a SSH and telnet client to access the remote Linux servers from their local Windows systems. However, PuTTY is not limited to Windows. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/02\/08\/how-to-install-and-use-putty-on-linux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How To Install And Use PuTTY On Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9314","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/9314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=9314"}],"version-history":[{"count":2,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/9314\/revisions"}],"predecessor-version":[{"id":9445,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/9314\/revisions\/9445"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=9314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=9314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=9314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}