{"id":4021,"date":"2020-05-31T10:00:42","date_gmt":"2020-05-31T10:00:42","guid":{"rendered":"http:\/\/jameseduard.com\/?p=4021"},"modified":"2020-05-31T10:00:42","modified_gmt":"2020-05-31T10:00:42","slug":"visual-studio-code-remote-ssh","status":"publish","type":"post","link":"https:\/\/www.jameseduard.com\/?p=4021","title":{"rendered":"Visual Studio Code Remote &#8211; SSH"},"content":{"rendered":"<div id=\"pl-4021\"  class=\"panel-layout\" >\n<div id=\"pg-4021-0\"  class=\"panel-grid panel-no-style\" >\n<div id=\"pgc-4021-0-0\"  class=\"panel-grid-cell\"  data-weight=\"1\" >\n<div id=\"panel-4021-0-0-0\" class=\"so-panel widget widget_text panel-first-child panel-last-child\" data-index=\"0\" data-style=\"{&quot;background_image_attachment&quot;:false,&quot;background_display&quot;:&quot;tile&quot;}\" >\n<h3 class=\"widget-title\">Visual Studio Code Remote &#8211; SSH<\/h3>\n<div class=\"textwidget\">\n<p>The\u00a0<strong>Remote &#8211; SSH<\/strong>\u00a0extension lets you use any remote machine with a SSH server as your development environment. This can greatly simplify development and troubleshooting in a wide variety of situations. You can:<\/p>\n<ul>\n<li>Develop on the same operating system you deploy to or use larger, faster, or more specialized hardware than your local machine.<\/li>\n<li>Quickly swap between different, remote development environments and safely make updates without worrying about impacting your local machine.<\/li>\n<li>Access an existing development environment from multiple machines or locations.<\/li>\n<li>Debug an application running somewhere else such as a customer site or in the cloud.<\/li>\n<\/ul>\n<h2 id=\"ssh-host-requirements\">SSH Host Requirements<\/h2>\n<p>You can connect to a running SSH server on the following platforms.<\/p>\n<p><strong>Supported<\/strong>:<\/p>\n<ul>\n<li>x86_64 Debian 8+, Ubuntu 16.04+, CentOS \/ RHEL 7+ Linux.<\/li>\n<li>ARMv7l (AArch32) Raspbian Stretch\/9+ (32-bit).<\/li>\n<li>ARMv8l (AArch64) Ubuntu 18.04+ (64-bit).<\/li>\n<li>Windows 10 \/ Server 2016\/2019 (1803+) using the\u00a0<a href=\"https:\/\/docs.microsoft.com\/windows-server\/administration\/openssh\/openssh_install_firstuse\" target=\"_blank\" rel=\"noreferrer noopener\">official OpenSSH Server<\/a>.<\/li>\n<li>macOS\u00a010.14+\u00a0(Mojave)\u00a0SSH\u00a0hosts\u00a0with\u00a0<a href=\"https:\/\/support.apple.com\/guide\/mac-help\/allow-a-remote-computer-to-access-your-mac-mchlp1066\/mac\" target=\"_blank\" rel=\"noreferrer noopener\">Remote\u00a0Login\u00a0enabled<\/a>.<\/li>\n<\/ul>\n<p>Other\u00a0<code>glibc<\/code>\u00a0based Linux distributions for x86_64, ARMv7l (AArch32), and ARMv8l (AArch64) should work if they have the needed prerequisites. See the\u00a0<a href=\"https:\/\/aka.ms\/vscode-remote\/linux\" target=\"_blank\" rel=\"noreferrer noopener\">Remote Development with Linux<\/a>\u00a0article for information prerequisites and tips for getting community supported distributions up and running.<\/p>\n<p>While ARMv7l (AArch32) and ARMv8l (AArch64) support is available, some extensions installed on these devices may not work due to the use of x86 native code in the extension.<\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"installation\">Installation<\/h2>\n<ol>\n<li>Install\u00a0<a href=\"https:\/\/code.visualstudio.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">VS Code<\/a>\u00a0or\u00a0<a href=\"https:\/\/code.visualstudio.com\/insiders\" target=\"_blank\" rel=\"noreferrer noopener\">VS Code &#8211; Insiders<\/a>\u00a0and this extension.<\/li>\n<li>Install\u00a0<a href=\"https:\/\/aka.ms\/vscode-remote\/ssh\/supported-clients\" target=\"_blank\" rel=\"noreferrer noopener\">an OpenSSH compatible SSH client<\/a>.<\/li>\n<li>If you do not have a SSH host set up, follow the directions for\u00a0<a href=\"https:\/\/aka.ms\/vscode-remote\/ssh\/ssh-server\" target=\"_blank\" rel=\"noreferrer noopener\">Linux<\/a>,\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/windows-server\/administration\/openssh\/openssh_install_firstuse\" target=\"_blank\" rel=\"noreferrer noopener\">Windows 10 \/ Server (1803+)<\/a>, or\u00a0<a href=\"https:\/\/support.apple.com\/guide\/mac-help\/allow-a-remote-computer-to-access-your-mac-mchlp1066\/mac\" target=\"_blank\" rel=\"noreferrer noopener\">macOS<\/a>\u00a0or create a\u00a0<a href=\"https:\/\/docs.microsoft.com\/azure\/virtual-machines\/linux\/quick-create-portal?toc=\/azure\/virtual-machines\/linux\/toc.json\" target=\"_blank\" rel=\"noreferrer noopener\">VM on Azure<\/a>.<\/li>\n<\/ol>\n<table class=\"ux-section-details-table\">\n<tbody>\n<tr>\n<td class=\"ux-itemdetails-left\">\n<div class=\"itemDetails\">\n<div class=\"markdown\">\n<h1 id=\"visual-studio-code-remote-ssh\">Visual Studio Code Remote &#8211; SSH<\/h1>\n<p>The\u00a0<strong>Remote &#8211; SSH<\/strong>\u00a0extension lets you use any remote machine with a SSH server as your development environment. This can greatly simplify development and troubleshooting in a wide variety of situations. You can:<\/p>\n<ul>\n<li>Develop on the same operating system you deploy to or use larger, faster, or more specialized hardware than your local machine.<\/li>\n<li>Quickly swap between different, remote development environments and safely make updates without worrying about impacting your local machine.<\/li>\n<li>Access an existing development environment from multiple machines or locations.<\/li>\n<li>Debug an application running somewhere else such as a customer site or in the cloud.<\/li>\n<\/ul>\n<p>No source code needs to be on your local machine to gain these benefits since the extension runs commands and other extensions directly on the remote machine. You can open any folder on the remote machine and work with it just as you would if the folder were on your own machine.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/microsoft.github.io\/vscode-remote-release\/images\/ssh-readme.gif\" alt=\"Remote SSH\" \/><\/p>\n<h2 id=\"ssh-host-requirements\">SSH Host Requirements<\/h2>\n<p>You can connect to a running SSH server on the following platforms.<\/p>\n<p><strong>Supported<\/strong>:<\/p>\n<ul>\n<li>x86_64 Debian 8+, Ubuntu 16.04+, CentOS \/ RHEL 7+ Linux.<\/li>\n<li>ARMv7l (AArch32) Raspbian Stretch\/9+ (32-bit).<\/li>\n<li>ARMv8l (AArch64) Ubuntu 18.04+ (64-bit).<\/li>\n<li>Windows 10 \/ Server 2016\/2019 (1803+) using the\u00a0<a href=\"https:\/\/docs.microsoft.com\/windows-server\/administration\/openssh\/openssh_install_firstuse\" target=\"_blank\" rel=\"noreferrer noopener\">official OpenSSH Server<\/a>.<\/li>\n<li>macOS\u00a010.14+\u00a0(Mojave)\u00a0SSH\u00a0hosts\u00a0with\u00a0<a href=\"https:\/\/support.apple.com\/guide\/mac-help\/allow-a-remote-computer-to-access-your-mac-mchlp1066\/mac\" target=\"_blank\" rel=\"noreferrer noopener\">Remote\u00a0Login\u00a0enabled<\/a>.<\/li>\n<\/ul>\n<p>Other\u00a0<code>glibc<\/code>\u00a0based Linux distributions for x86_64, ARMv7l (AArch32), and ARMv8l (AArch64) should work if they have the needed prerequisites. See the\u00a0<a href=\"https:\/\/aka.ms\/vscode-remote\/linux\" target=\"_blank\" rel=\"noreferrer noopener\">Remote Development with Linux<\/a>\u00a0article for information prerequisites and tips for getting community supported distributions up and running.<\/p>\n<p>While ARMv7l (AArch32) and ARMv8l (AArch64) support is available, some extensions installed on these devices may not work due to the use of x86 native code in the extension.<\/p>\n<h2 id=\"installation\">Installation<\/h2>\n<ol>\n<li>Install\u00a0<a href=\"https:\/\/code.visualstudio.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">VS Code<\/a>\u00a0or\u00a0<a href=\"https:\/\/code.visualstudio.com\/insiders\" target=\"_blank\" rel=\"noreferrer noopener\">VS Code &#8211; Insiders<\/a>\u00a0and this extension.<\/li>\n<li>Install\u00a0<a href=\"https:\/\/aka.ms\/vscode-remote\/ssh\/supported-clients\" target=\"_blank\" rel=\"noreferrer noopener\">an OpenSSH compatible SSH client<\/a>.<\/li>\n<li>If you do not have a SSH host set up, follow the directions for\u00a0<a href=\"https:\/\/aka.ms\/vscode-remote\/ssh\/ssh-server\" target=\"_blank\" rel=\"noreferrer noopener\">Linux<\/a>,\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/windows-server\/administration\/openssh\/openssh_install_firstuse\" target=\"_blank\" rel=\"noreferrer noopener\">Windows 10 \/ Server (1803+)<\/a>, or\u00a0<a href=\"https:\/\/support.apple.com\/guide\/mac-help\/allow-a-remote-computer-to-access-your-mac-mchlp1066\/mac\" target=\"_blank\" rel=\"noreferrer noopener\">macOS<\/a>\u00a0or create a\u00a0<a href=\"https:\/\/docs.microsoft.com\/azure\/virtual-machines\/linux\/quick-create-portal?toc=\/azure\/virtual-machines\/linux\/toc.json\" target=\"_blank\" rel=\"noreferrer noopener\">VM on Azure<\/a>.<\/li>\n<\/ol>\n<h2 id=\"getting-started\">Getting started<\/h2>\n<p><strong><a href=\"https:\/\/aka.ms\/vscode-remote\/ssh\/tutorial\" target=\"_blank\" rel=\"noreferrer noopener\">Follow the step-by-step tutorial<\/a><\/strong>\u00a0or if you have a simple SSH host setup, connect to it as follows:<\/p>\n<ol>\n<li>Press\u00a0<code>F1<\/code>\u00a0and run the\u00a0<strong>Remote-SSH: Open SSH Host&#8230;<\/strong>\u00a0command.<\/li>\n<li>Enter your user and host\/IP in the following format in the input box that appears and press enter:\u00a0<code>user@host-or-ip<\/code>\u00a0or\u00a0<code>user@domain@host-or-ip<\/code><\/li>\n<li>If prompted, enter your password (but we suggest setting up\u00a0<a href=\"https:\/\/aka.ms\/vscode-remote\/ssh\/key-based-auth\" target=\"_blank\" rel=\"noreferrer noopener\">key based authentication<\/a>).<\/li>\n<li>After you are connected, use\u00a0<strong>File &gt; Open Folder<\/strong>\u00a0to open a folder on the host.<\/li>\n<\/ol>\n<p>You can press\u00a0<code>F1<\/code>\u00a0to bring up the Command Palette and type in\u00a0<code>Remote-SSH<\/code>\u00a0for a full list of available commands.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/microsoft.github.io\/vscode-remote-release\/images\/remote-ssh-command-palette.png\" alt=\"Command palette\" \/><\/p>\n<p>You can also click on the Remote &#8220;Quick Access&#8221; status bar item in the lower left corner to get a list of the most common commands.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/microsoft.github.io\/vscode-remote-release\/images\/remote-dev-status-bar.png\" alt=\"Quick actions status bar item\" \/><\/p>\n<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>No source code needs to be on your local machine to gain these benefits since the extension runs commands and other extensions directly on the remote machine. You can open any folder on the remote machine and work with it just as you would if the folder were on your own machine.<\/p>\n<\/div><\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Visual Studio Code Remote &#8211; SSH The\u00a0Remote &#8211; SSH\u00a0extension lets you use any remote machine with a SSH server as your development environment. This can greatly simplify development and troubleshooting in a wide variety of situations. You can: Develop on the same operating system you deploy to or use larger, faster, or more specialized hardware<\/p>\n","protected":false},"author":1,"featured_media":4023,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52,47,804],"tags":[270,304,805],"class_list":["post-4021","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops","category-how-tos","category-recent-post","tag-remote","tag-ssh","tag-visual-studio-code"],"_links":{"self":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts\/4021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4021"}],"version-history":[{"count":0,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts\/4021\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}