{"id":242,"date":"2010-08-04T00:40:14","date_gmt":"2010-08-04T07:40:14","guid":{"rendered":"http:\/\/blog.portnumber53.com\/?p=242"},"modified":"2010-08-04T00:40:14","modified_gmt":"2010-08-04T07:40:14","slug":"use-an-alias-to-ssh-to-a-server","status":"publish","type":"post","link":"https:\/\/blog.portnumber53.com\/index.php\/2010\/08\/04\/use-an-alias-to-ssh-to-a-server\/","title":{"rendered":"Use an alias to SSH to a server"},"content":{"rendered":"<p>Create a file ~\/.ssh\/config and insert the following:<\/p>\n<pre class=\"brush:plain\">mauricio@rynex:~$ cat .ssh\/config\nHost SERVER_ALIAS\nPort PORT\nHostName SERVER_NAME\nUser USERNAME\nCompression yes\nTCPKeepAlive yes<\/pre>\n<p>Change according to your servername, username and port, of course.<\/p>\n<p>Then you can simply use:<\/p>\n<pre class=\"brush:bash\">ssh SERVER_ALIAS<\/pre>\n<p>to connect to the server instead of using:<\/p>\n<pre class=\"brush:bash\">ssh username@hostname<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Create a file ~\/.ssh\/config and insert the following: mauricio@rynex:~$ cat .ssh\/config Host SERVER_ALIAS Port PORT HostName SERVER_NAME User USERNAME Compression yes TCPKeepAlive yes Change according to your servername, username and port, of course. Then you can simply use: ssh SERVER_ALIAS to connect to the server instead of using: ssh username@hostname<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[37,176,219,305,320,334],"class_list":["post-242","post","type-post","status-publish","format-standard","hentry","category-linux","tag-administration","tag-hints","tag-linux","tag-server","tag-ssh","tag-terminal"],"_links":{"self":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/posts\/242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/comments?post=242"}],"version-history":[{"count":0,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/posts\/242\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/media?parent=242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/categories?post=242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/tags?post=242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}