<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Sandbox Password for ssh not working for scp? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Sandbox-Password-for-ssh-not-working-for-scp/m-p/145521#M108089</link>
    <description>&lt;P&gt;Hi Suzanne, if the Sandbox is in Azure, I am confused about the use of localhost in the command. To access a Sandbox on Azure, I would think you'd need to find the SSH port in Settings &amp;gt; Endpoints (it's set dynamically) and use the publicly-resolvable hostname (as in &lt;A href="https://github.com/hortonworks-gallery/tutorials/blob/master/2015-06-15-configuring-hortonwork-sandbox-azure%20copy.md"&gt;this guide&lt;/A&gt;). Am I missing something about the setup? How are you successfully ssh'ing?&lt;/P&gt;</description>
    <pubDate>Sun, 11 Sep 2016 01:10:58 GMT</pubDate>
    <dc:creator>slachterman</dc:creator>
    <dc:date>2016-09-11T01:10:58Z</dc:date>
    <item>
      <title>Sandbox Password for ssh not working for scp?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sandbox-Password-for-ssh-not-working-for-scp/m-p/145518#M108086</link>
      <description>&lt;P&gt;I am on step 1.4 in Section 2 of the "Learning the Ropes ..." tutorial (Sandbox in Microsoft Azure). I am able to ssh into my Sandbox using the password I set up for it via Azure during initial setup. I am able to create files in my Sandbox and navigate around. But I cannot scp into the Sandbox! I am pretty sure I'm supposed to run scp from a separate terminal, although it's not 100% clear in the instructions. &lt;/P&gt;&lt;P&gt;Assume my scp command is: scp -P 22 /Path/Somefile.txt MyName@localhost:/MyName&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;When I run it from within the ssh session, I get:&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;Console Response: /Path/Somefile.txt: No such file or directory&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;This makes sense I guess because I'm supposed to be running scp from my local machine&lt;/P&gt;&lt;P&gt;But when I run that same command from a separate terminal window, my Sandbox password is not accepted. I tried using "localhost" literally as well as replacing it with the IP address of my Sandbox host.&lt;/P&gt;&lt;P&gt;I'm stumped. How can it be that the password which works for ssh does not work for scp? &lt;/P&gt;</description>
      <pubDate>Sat, 10 Sep 2016 19:50:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sandbox-Password-for-ssh-not-working-for-scp/m-p/145518#M108086</guid>
      <dc:creator>sdimant</dc:creator>
      <dc:date>2016-09-10T19:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sandbox Password for ssh not working for scp?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sandbox-Password-for-ssh-not-working-for-scp/m-p/145519#M108087</link>
      <description>&lt;P&gt;Can you send the exact output of the failed command?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Sep 2016 21:06:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sandbox-Password-for-ssh-not-working-for-scp/m-p/145519#M108087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-10T21:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sandbox Password for ssh not working for scp?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sandbox-Password-for-ssh-not-working-for-scp/m-p/145520#M108088</link>
      <description>&lt;P&gt;It basically just says "Permission denied".&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;MyMac:~ LocalUser$ scp -P 22 /Path/Somefile.txt RemoteUser@xx.xx.xx.xx:/RemoteUser&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;RemoteUser@xx.xx.xx.xx:'s password:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;scp: /RemoteUser: Permission denied&lt;/P&gt;&lt;P&gt;When I try port 2222 (as per the tutorial), I just time-out with:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;ssh: connect to host xx.xx.xx.xx port 2222: Operation timed out&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;lost connection&lt;/P&gt;&lt;P&gt;I was able to make a &lt;EM&gt;little&lt;/EM&gt; progress by resetting my root password on my Sandbox (using 'sudo passwd root') and then scp'g in as root with that password. The console response makes it seems as if a file was actually transferred but I cannot find it anywhere on my Sandbox (even using 'find /*.txt'). In that case the console output was:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;root@xx.xx.xx.xx:'s password:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;Somefile.txt 100%  133KB 133.4KB/s   00:00&lt;/P&gt;&lt;P&gt;When I try to scp in as root from the web client, I'm back to ground zero:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;root@xx.xx.xx.xx:'s password:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;/Path/Somefile.txt: No such file or directory&lt;/P&gt;&lt;P&gt;So confused ... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Sep 2016 23:07:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sandbox-Password-for-ssh-not-working-for-scp/m-p/145520#M108088</guid>
      <dc:creator>sdimant</dc:creator>
      <dc:date>2016-09-10T23:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sandbox Password for ssh not working for scp?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sandbox-Password-for-ssh-not-working-for-scp/m-p/145521#M108089</link>
      <description>&lt;P&gt;Hi Suzanne, if the Sandbox is in Azure, I am confused about the use of localhost in the command. To access a Sandbox on Azure, I would think you'd need to find the SSH port in Settings &amp;gt; Endpoints (it's set dynamically) and use the publicly-resolvable hostname (as in &lt;A href="https://github.com/hortonworks-gallery/tutorials/blob/master/2015-06-15-configuring-hortonwork-sandbox-azure%20copy.md"&gt;this guide&lt;/A&gt;). Am I missing something about the setup? How are you successfully ssh'ing?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2016 01:10:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sandbox-Password-for-ssh-not-working-for-scp/m-p/145521#M108089</guid>
      <dc:creator>slachterman</dc:creator>
      <dc:date>2016-09-11T01:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sandbox Password for ssh not working for scp?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sandbox-Password-for-ssh-not-working-for-scp/m-p/145522#M108090</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/55876/sandbox-password-for-ssh-not-working-for-scp.html#"&gt;@slachterman&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The ‘&lt;A href="http://hortonworks.com/hadoop-tutorial/learning-the-ropes-of-the-hortonworks-sandbox/"&gt;Learning the Ropes&lt;/A&gt;’ tutorial (step 1.4 in Section 2) actually says to use localhost but I eventually realized that didn't make sense so I started using the Public IP address from my Azure Sandbox settings; that's what I mean by xx.xx.xx.xx in my subsequent posts. Sorry if that wasn't clear. I also tried my fully-qualified pubic hostname, logging in as root, and got the same result as when I used the IP address. The tutorial instructions say to use port 2222, but the SSH port is configured as 22 in my Azure Sandbox.&lt;/P&gt;&lt;P&gt;In other words, the following 2 commands do not work. According to the console output, the file is transferred but I cannot find it anywhere on my Sandbox.&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;scp -P 22 /Path/Somefile.txt root@40.76.83.227:/RemoteDirectory&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;scp -P 22 /Path/Somefile.txt root@sdimant.cloudapp.azure.com:/RemoteDirectory&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2016 09:09:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sandbox-Password-for-ssh-not-working-for-scp/m-p/145522#M108090</guid>
      <dc:creator>sdimant</dc:creator>
      <dc:date>2016-09-11T09:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sandbox Password for ssh not working for scp?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sandbox-Password-for-ssh-not-working-for-scp/m-p/145523#M108091</link>
      <description>&lt;P&gt;OK, I finally got it to work! The instruction in Step 1.4 in Section 2 of the "&lt;A href="http://hortonworks.com/hadoop-tutorial/learning-the-ropes-of-the-hortonworks-sandbox/"&gt;Learning the Ropes &lt;/A&gt;..." tutorial (Sandbox in Microsoft Azure) is wrong, in 3 ways:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The scp port for Azure is 22, not 2222&lt;/LI&gt;&lt;LI&gt;You must scp into Azure as root; therefore you must reset the root password in your Sandbox first using 'sudo passwd root'&lt;/LI&gt;&lt;LI&gt;Your home directory is not just “RemoteUser” from root’s perspective, but “/home/RemoterUser'&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Sun, 11 Sep 2016 20:49:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sandbox-Password-for-ssh-not-working-for-scp/m-p/145523#M108091</guid>
      <dc:creator>sdimant</dc:creator>
      <dc:date>2016-09-11T20:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sandbox Password for ssh not working for scp?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sandbox-Password-for-ssh-not-working-for-scp/m-p/145524#M108092</link>
      <description>&lt;P&gt;@suzanne Dimant - can you give me the actual scp command you used to get that working . Also what terminal did you use cygwin ?&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2017 13:05:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sandbox-Password-for-ssh-not-working-for-scp/m-p/145524#M108092</guid>
      <dc:creator>vasanthvazz</dc:creator>
      <dc:date>2017-04-01T13:05:21Z</dc:date>
    </item>
  </channel>
</rss>

