<?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 scp from local to other hosts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-from-local-to-other-hosts/m-p/3447566#M744080</link>
    <description>Hi, &lt;BR /&gt;I have got a Linux host. I am having some file which I need to remote host to destination location. &lt;BR /&gt;scp  $file pzanwar@host:/etc/mail/aliases &lt;BR /&gt;&lt;BR /&gt;says permission denied. &lt;BR /&gt;What I tried doing is sent the file to my home directory and then ssh sudo cp -p ~pzanwar/&lt;FILENAME&gt; /etc/mail/aliases&lt;BR /&gt;&lt;BR /&gt;This says destination shud be directory..&lt;BR /&gt;&lt;BR /&gt;I want to know y scp is failing first. and how do i acheive this. same happens with mv also. &lt;BR /&gt;password gets through..though&lt;BR /&gt;Prashant&lt;/FILENAME&gt;</description>
    <pubDate>Mon, 20 Dec 2004 16:54:53 GMT</pubDate>
    <dc:creator>Prashant Zanwar_4</dc:creator>
    <dc:date>2004-12-20T16:54:53Z</dc:date>
    <item>
      <title>scp from local to other hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-from-local-to-other-hosts/m-p/3447566#M744080</link>
      <description>Hi, &lt;BR /&gt;I have got a Linux host. I am having some file which I need to remote host to destination location. &lt;BR /&gt;scp  $file pzanwar@host:/etc/mail/aliases &lt;BR /&gt;&lt;BR /&gt;says permission denied. &lt;BR /&gt;What I tried doing is sent the file to my home directory and then ssh sudo cp -p ~pzanwar/&lt;FILENAME&gt; /etc/mail/aliases&lt;BR /&gt;&lt;BR /&gt;This says destination shud be directory..&lt;BR /&gt;&lt;BR /&gt;I want to know y scp is failing first. and how do i acheive this. same happens with mv also. &lt;BR /&gt;password gets through..though&lt;BR /&gt;Prashant&lt;/FILENAME&gt;</description>
      <pubDate>Mon, 20 Dec 2004 16:54:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-from-local-to-other-hosts/m-p/3447566#M744080</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2004-12-20T16:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: scp from local to other hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-from-local-to-other-hosts/m-p/3447567#M744081</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;try this as,&lt;BR /&gt;&lt;BR /&gt;scp $file root@host:/etc/mail/aliases &lt;BR /&gt;&lt;BR /&gt;hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Dec 2004 17:01:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-from-local-to-other-hosts/m-p/3447567#M744081</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-12-20T17:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: scp from local to other hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-from-local-to-other-hosts/m-p/3447568#M744082</link>
      <description>I have sudo setup in my environment, I have sudo access to all hosts. Problem is how to use that with scp, or how do i get myself authenticated as root if I use scp? &lt;BR /&gt;Thanks &lt;BR /&gt;Prashant</description>
      <pubDate>Mon, 20 Dec 2004 17:40:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-from-local-to-other-hosts/m-p/3447568#M744082</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2004-12-20T17:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: scp from local to other hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-from-local-to-other-hosts/m-p/3447569#M744083</link>
      <description>I'm not sure how sudo integrates in SSH as far as authentication and authorization are concerned.&lt;BR /&gt;I suppose both can use the pluggable authentication modules (PAM).&lt;BR /&gt;But this is a matter of how the tools were compiled and how they are configured.&lt;BR /&gt;At least from the OpenSSH sshd_config I know that there exists a directive UsePAM, and that the by HP distributed "Secure Shell" for HP-UX (which is a build from OpenSSH) has PAM support enabled and comes with sshd.pam.* libs.&lt;BR /&gt; &lt;BR /&gt;Is your root access on the remote host fully restricted by sudo, or do you have a chance to place files in root's home dir?&lt;BR /&gt;If the latter is true you can either create a ~root/.shosts file (not the preferred method), or create a key pair of your local account and append it to ~root/.ssh/authorized_keys on remote host.&lt;BR /&gt;But you have to know how the remote sshd is configured, i.e. be able to look at its sshd_config to see what is allowed.&lt;BR /&gt;There are too many directives that rule the behaviour of the remote sshd for me to spell them all out here.&lt;BR /&gt;If you were able (and willing, caveat security policy) to post the contents of the sshd_config of remote host here we could advise you what would work, and probably what would be advisable as Dos and Don'ts.&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Dec 2004 04:07:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-from-local-to-other-hosts/m-p/3447569#M744083</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2004-12-21T04:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: scp from local to other hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-from-local-to-other-hosts/m-p/3447570#M744084</link>
      <description>I cannot disclose any security policy for obvious reasons...&lt;BR /&gt;&lt;BR /&gt;Suggestion is good though. Thanks a lot. &lt;BR /&gt;I will probably take help of security guys to make this work. &lt;BR /&gt;&lt;BR /&gt;Thanks a lot. &lt;BR /&gt;Prashant</description>
      <pubDate>Tue, 21 Dec 2004 10:57:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-from-local-to-other-hosts/m-p/3447570#M744084</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2004-12-21T10:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: scp from local to other hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-from-local-to-other-hosts/m-p/3447571#M744085</link>
      <description>Your following syntax is wrong.&lt;BR /&gt;&lt;BR /&gt;ssh sudo cp -p ~pzanwar/&lt;FILENAME&gt; /etc/mail/aliases&lt;BR /&gt;&lt;BR /&gt;You need to as follows. (As a pzanwar user)&lt;BR /&gt;&lt;BR /&gt;sudo scp $file root@host:/etc/mail/aliases&lt;BR /&gt;I assume that you have set root user for authentication.&lt;BR /&gt;&lt;BR /&gt;Anil&lt;/FILENAME&gt;</description>
      <pubDate>Tue, 21 Dec 2004 11:03:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-from-local-to-other-hosts/m-p/3447571#M744085</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-12-21T11:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: scp from local to other hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-from-local-to-other-hosts/m-p/3447572#M744086</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Try the following,&lt;BR /&gt;&lt;BR /&gt;cat $file | ssh RemoteMachine 'cat &amp;gt;&amp;gt; /etc/mail/aliases'&lt;BR /&gt;&lt;BR /&gt;Permisson Denied problem may arise,due to&lt;BR /&gt;&lt;BR /&gt;1. Your account may expired in remote machine.&lt;BR /&gt;2. You may not have nescessary privileges &lt;BR /&gt;to create a file in remote machine.&lt;BR /&gt;&lt;BR /&gt;Try the following,&lt;BR /&gt;&lt;BR /&gt;1. Run scp in debug mode as follows&lt;BR /&gt;  scp -v $file username@remotehost:/dest/dir&lt;BR /&gt;&lt;BR /&gt;It can figure out possible causes of problems.&lt;BR /&gt;&lt;BR /&gt;2. If possible run the server in debug mode to find the fault.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;M</description>
      <pubDate>Tue, 21 Dec 2004 23:52:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-from-local-to-other-hosts/m-p/3447572#M744086</guid>
      <dc:creator>Michael Selvesteen_2</dc:creator>
      <dc:date>2004-12-21T23:52:05Z</dc:date>
    </item>
  </channel>
</rss>

