<?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>topic Re: correct scp syntax in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/correct-scp-syntax/m-p/3716766#M21508</link>
    <description>Shalom Sanjit,&lt;BR /&gt;&lt;BR /&gt;I'm on snort. The server, not the drug.&lt;BR /&gt;&lt;BR /&gt;I am logged in as user schmo.&lt;BR /&gt;&lt;BR /&gt;I want to log into or scp (the syntax is the same) server bagel as user user2&lt;BR /&gt;&lt;BR /&gt;snort&amp;gt;scp /usr/local/files/* user2@bagel:/targetdir&lt;BR /&gt;&lt;BR /&gt;There is no way I know around a password prompt here but this command will copy files from snort to bagel and log in as user user2. It is up to you as the administrator to make sure user schmo on server snort has rights to write files to the target directory on server bagel.&lt;BR /&gt;&lt;BR /&gt;The hostnames bagel can be replaced with a numeric ip address. You don't need to specify the ip address of the local system.&lt;BR /&gt;&lt;BR /&gt;I've never tried to use scp to go from two remote servers. Sounds like an interesting experiment though.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Tue, 24 Jan 2006 17:59:36 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2006-01-24T17:59:36Z</dc:date>
    <item>
      <title>correct scp syntax</title>
      <link>https://community.hpe.com/t5/operating-system-linux/correct-scp-syntax/m-p/3716764#M21506</link>
      <description>I am currently on my system. I need to scp from another system as a different user a file to my system as such and am having issue. &lt;BR /&gt;&lt;BR /&gt;What am I doing wrong here.&lt;BR /&gt;&lt;BR /&gt;snort&amp;gt;scp user@xxx.xx.xx.x:test xxx.xx.xx.xx:/home/user. &lt;BR /&gt;&lt;BR /&gt;I know if I am on snort now and I want to scp something to another host, I do the following..&lt;BR /&gt;&lt;BR /&gt;snort&amp;gt; scp test 172.24.10.0:/home/user. &lt;BR /&gt;&lt;BR /&gt;What about if I want to scp from another host as a different user? &lt;BR /&gt;&lt;BR /&gt;Thanks and points will be assigned.</description>
      <pubDate>Tue, 24 Jan 2006 17:54:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/correct-scp-syntax/m-p/3716764#M21506</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2006-01-24T17:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: correct scp syntax</title>
      <link>https://community.hpe.com/t5/operating-system-linux/correct-scp-syntax/m-p/3716765#M21507</link>
      <description>Shalom Sanjit,&lt;BR /&gt;&lt;BR /&gt;I'm on snort. The server, not the drug.&lt;BR /&gt;&lt;BR /&gt;I am logged in as user schmo.&lt;BR /&gt;&lt;BR /&gt;I want to log into or scp (the syntax is the same) server bagel as user user2&lt;BR /&gt;&lt;BR /&gt;snort&amp;gt;scp /usr/local/files/* user2@bagel:/targetdir&lt;BR /&gt;&lt;BR /&gt;There is no way I know around a password prompt here but this command will copy files from snort to bagel and log in as user user2. It is up to you as the administrator to make sure user schmo on server snort has rights to write files to the target directory on server bagel.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 24 Jan 2006 17:58:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/correct-scp-syntax/m-p/3716765#M21507</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-01-24T17:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: correct scp syntax</title>
      <link>https://community.hpe.com/t5/operating-system-linux/correct-scp-syntax/m-p/3716766#M21508</link>
      <description>Shalom Sanjit,&lt;BR /&gt;&lt;BR /&gt;I'm on snort. The server, not the drug.&lt;BR /&gt;&lt;BR /&gt;I am logged in as user schmo.&lt;BR /&gt;&lt;BR /&gt;I want to log into or scp (the syntax is the same) server bagel as user user2&lt;BR /&gt;&lt;BR /&gt;snort&amp;gt;scp /usr/local/files/* user2@bagel:/targetdir&lt;BR /&gt;&lt;BR /&gt;There is no way I know around a password prompt here but this command will copy files from snort to bagel and log in as user user2. It is up to you as the administrator to make sure user schmo on server snort has rights to write files to the target directory on server bagel.&lt;BR /&gt;&lt;BR /&gt;The hostnames bagel can be replaced with a numeric ip address. You don't need to specify the ip address of the local system.&lt;BR /&gt;&lt;BR /&gt;I've never tried to use scp to go from two remote servers. Sounds like an interesting experiment though.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 24 Jan 2006 17:59:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/correct-scp-syntax/m-p/3716766#M21508</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-01-24T17:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: correct scp syntax</title>
      <link>https://community.hpe.com/t5/operating-system-linux/correct-scp-syntax/m-p/3716767#M21509</link>
      <description>The general syntax is:&lt;BR /&gt;&lt;BR /&gt;localfile  from server1 to server2&lt;BR /&gt;&lt;BR /&gt;server1&amp;gt; scp /path/to/localfile user@server2:/path/to/destination&lt;BR /&gt;&lt;BR /&gt;remotefile from server2 to server1&lt;BR /&gt;server1&amp;gt;  scp user@server2:/path/to/remotefile /path/to/localdir</description>
      <pubDate>Tue, 24 Jan 2006 18:34:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/correct-scp-syntax/m-p/3716767#M21509</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-01-24T18:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: correct scp syntax</title>
      <link>https://community.hpe.com/t5/operating-system-linux/correct-scp-syntax/m-p/3716768#M21510</link>
      <description>You have to give user and hostname or ip-address information to remote machine only.&lt;BR /&gt;&lt;BR /&gt;Copying remote file to local machine:&lt;BR /&gt;&lt;BR /&gt;scp remote-user@&lt;HOSTNAME or="" ip-address=""&gt;:/location /local location&lt;BR /&gt;&lt;BR /&gt;scp root@172.19.0.1:/tmp/* /tmp/test/&lt;BR /&gt;&lt;BR /&gt;Copying local file to remote machine:&lt;BR /&gt;&lt;BR /&gt;scp /tmp/test/* root@172.19.0.1&lt;BR /&gt;&lt;BR /&gt;No need to use user with hostname or ip-address to localmachine since it is known.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu&lt;/HOSTNAME&gt;</description>
      <pubDate>Wed, 25 Jan 2006 03:22:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/correct-scp-syntax/m-p/3716768#M21510</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-01-25T03:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: correct scp syntax</title>
      <link>https://community.hpe.com/t5/operating-system-linux/correct-scp-syntax/m-p/3716769#M21511</link>
      <description>Hi;&lt;BR /&gt;&lt;BR /&gt;Try this&lt;BR /&gt;&lt;BR /&gt;#scp file_name user_name@host.domain.com:/export/home(path)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cheers&lt;BR /&gt;indrajit</description>
      <pubDate>Wed, 25 Jan 2006 14:59:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/correct-scp-syntax/m-p/3716769#M21511</guid>
      <dc:creator>Indrajit_1</dc:creator>
      <dc:date>2006-01-25T14:59:40Z</dc:date>
    </item>
  </channel>
</rss>

