{"id":5541,"date":"2016-01-03T06:36:42","date_gmt":"2016-01-02T22:36:42","guid":{"rendered":"http:\/\/rmohan.com\/?p=5541"},"modified":"2016-01-03T06:36:42","modified_gmt":"2016-01-02T22:36:42","slug":"ssh-terminal-login-in-linux","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=5541","title":{"rendered":"SSH terminal login in linux"},"content":{"rendered":"<p><span class=\"notranslate\">Windows VPS remotely manage the SSH login tool is <a title=\"Use PuTTY Telnet management server\" href=\"https:\/\/translate.googleusercontent.com\/translate_c?depth=1&amp;hl=en&amp;rurl=translate.google.com&amp;sl=auto&amp;tl=en&amp;u=http:\/\/cnzhx.net\/blog\/putty-basic-usage\/&amp;usg=ALkJrhiv2xz0tFwTXc0fMPrResvhA33nTw\">PuTTY<\/a> , but Linux, there is no need to use it.<\/span> <span class=\"notranslate\"> Linux, Unix (including Mac iOS) are bound to have a built-in command-line terminal, built <a href=\"https:\/\/translate.googleusercontent.com\/translate_c?depth=1&amp;hl=en&amp;rurl=translate.google.com&amp;sl=auto&amp;tl=en&amp;u=http:\/\/www.openssh.com\/manual.html&amp;usg=ALkJrhhMTRzWd1eni4li41mpLAg4AKiCGQ\">OpenSSH<\/a> commands.<\/span> <span class=\"notranslate\"> VPS Linux system through which to log on to be more convenient.<\/span><\/p>\n<p><span id=\"more-8069\"><\/span> <span class=\"notranslate\"> Open a command line terminal in Linux, the direct input instruction,<\/span><\/p>\n<p>&nbsp;<\/p>\n<pre>ssh &lt;username&gt;@&lt;serverdomain or IP&gt; -p &lt;port&gt;<\/pre>\n<p><span class=\"notranslate\">Under normal circumstances, where <code>?<\/code> indicates the current users of the system root directory, so this document <strong>may<\/strong> be <code>\/home\/username\/.ssh\/config<\/code> (system depends on the use of a).<\/span><\/p>\n<p><span class=\"notranslate\"> Now enter the configuration, such as the above command used example, a user named username, VPS server server_IP, SSH service port on the server is 22, then,<\/span><\/p>\n<pre><span class=\"notranslate\">\u00a0<\/span><\/pre>\n<pre>cat &gt;&gt; ~\/.ssh\/config &lt;&lt;EOF\r\nHost your_alias\r\n    User username\r\n    Hostname server_IP\r\n    Port 22\r\nEOF\r\n\r\n\r\n<span class=\"notranslate\">Here your_alias can be any aliases you want, such as server.<\/span> <span class=\"notranslate\"> Now you can simply type,<\/span><\/pre>\n<pre><span class=\"notranslate\">ssh your_alias<\/span> \r\n\r\n\r\n<span class=\"notranslate\">This configuration can also be combined with something else to features such as connection remains.<\/span> <span class=\"notranslate\"> We do not want to make it in time to send a meaningless data operations to keep the connection will not be disconnected server automatically at regular intervals <\/span><\/pre>\n<pre>cat \"ServerAliveInterval 30\" &gt;&gt; ~\/.ssh\/config<\/pre>\n<pre>\r\n\r\n\r\n<\/pre>\n<pre><span class=\"notranslate\">\u00a0<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Windows VPS remotely manage the SSH login tool is PuTTY , but Linux, there is no need to use it. Linux, Unix (including Mac iOS) are bound to have a built-in command-line terminal, built OpenSSH commands. VPS Linux system through which to log on to be more convenient.<\/p>\n<p> Open a command line terminal in [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5541"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5541"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5541\/revisions"}],"predecessor-version":[{"id":5542,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5541\/revisions\/5542"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}