<?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: using ssh/scp/sftp in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-ssh-scp-sftp/m-p/5169416#M457697</link>
    <description>The most common cause for SSH key authentication problems is too much file permissions.&lt;BR /&gt;&lt;BR /&gt;If the home directory of the non-root user has "group write" or "everyone write" permissions, the ssh client will regard the home directory as "unsafe" - even if nobody other than this user belongs to the group. The client will refuse to use unsafe private keys.&lt;BR /&gt;&lt;BR /&gt;Maximum recommended permissions so that ssh key authentication still works:&lt;BR /&gt;&lt;BR /&gt;User's home directory: &lt;BR /&gt;chmod 755 or drwxr-xr-x&lt;BR /&gt;The directory must be owned by this user or root.&lt;BR /&gt;(If you need group-writable directories, you can create writable sub-directories within the home directory.)&lt;BR /&gt;&lt;BR /&gt;~/.ssh directory: &lt;BR /&gt;chmod 700 or drwx------&lt;BR /&gt;The directory must be owned by this user or root.&lt;BR /&gt;&lt;BR /&gt;~/.ssh/id_* files and ~/.ssh/authorized_keys file:&lt;BR /&gt;If the files exist, they must be owned by this user or root. File permissions of the private key files must be chmod 600 or -rw-------.&lt;BR /&gt;&lt;BR /&gt;MK</description>
    <pubDate>Tue, 14 Apr 2009 09:16:56 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2009-04-14T09:16:56Z</dc:date>
    <item>
      <title>using ssh/scp/sftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-ssh-scp-sftp/m-p/5169409#M457690</link>
      <description>Dears,&lt;BR /&gt;I generate a key from server A as root user and copy to server B authorize_key. and now I can send files from A to B, but: I'm littel warried:&lt;BR /&gt;1. can server B access to server A?&lt;BR /&gt;2. can server B send files to server B?&lt;BR /&gt;basiclly I want only server A to send files to server B, and not allow server B to access.&lt;BR /&gt;thanks&lt;BR /&gt;Ahmed&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Apr 2009 06:31:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-ssh-scp-sftp/m-p/5169409#M457690</guid>
      <dc:creator>Ahmed_58</dc:creator>
      <dc:date>2009-04-14T06:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: using ssh/scp/sftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-ssh-scp-sftp/m-p/5169410#M457691</link>
      <description>&lt;!--!*#--&gt;&amp;gt; 1. can server B access to server A?&lt;BR /&gt;&lt;BR /&gt;Have you tried it?  (What happened?)&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 2. can server B send files to server B?&lt;BR /&gt;&lt;BR /&gt;Have you tried it?  (What happened?)</description>
      <pubDate>Tue, 14 Apr 2009 06:35:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-ssh-scp-sftp/m-p/5169410#M457691</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-04-14T06:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: using ssh/scp/sftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-ssh-scp-sftp/m-p/5169411#M457692</link>
      <description>Hi,&lt;BR /&gt;will, I dont have access to server B. I only pass the key to other end Administrator.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Ahmed</description>
      <pubDate>Tue, 14 Apr 2009 06:40:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-ssh-scp-sftp/m-p/5169411#M457692</guid>
      <dc:creator>Ahmed_58</dc:creator>
      <dc:date>2009-04-14T06:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: using ssh/scp/sftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-ssh-scp-sftp/m-p/5169412#M457693</link>
      <description>The SSH keys are user-specific.&lt;BR /&gt;&lt;BR /&gt;Nobody on server B can access server A because of this key in any way.&lt;BR /&gt;&lt;BR /&gt;With your setup, the root user (and nobody else) on server A can both "push" and "pull" files:&lt;BR /&gt;&lt;BR /&gt;From A to B:&lt;BR /&gt;serverA&amp;gt; scp /some/file.txt serverB:/some/dir&lt;BR /&gt;&lt;BR /&gt;From B to A:&lt;BR /&gt;serverA&amp;gt; scp serverB:/some/file.txt /some/dir&lt;BR /&gt;&lt;BR /&gt;If the key was copied to the authorized_keys file of a non-root user on server B (for example "userB"), you should be aware of two things:&lt;BR /&gt;&lt;BR /&gt;- You must always specify the target username when accessing server B:&lt;BR /&gt;&lt;BR /&gt;scp /some/file.txt userB@serverB:/some/directory&lt;BR /&gt;&lt;BR /&gt;sftp userB@serverB&lt;BR /&gt;&lt;BR /&gt;If you don't specify the username, the default is the same username as you're using on server A (i.e. root). If you don't know the correct username on server B, ask the administrator of server B: there is no way you can find it out on your own except by blindly trying all possible usernames.&lt;BR /&gt;&lt;BR /&gt;- On server B, you can only access the directories userB has access to. You don't automatically have root access on server B just because you are root on server A.&lt;BR /&gt;&lt;BR /&gt;If you want to allow a non-root user on server A to do the copying, you don't need to create new keys: you can just copy the /root/.ssh/id_* files to the ~/.ssh directory of that user and chown the key files to that user. Of course, if you have set a passphrase to that key, you must then allow the user to know the passphrase.&lt;BR /&gt;&lt;BR /&gt;(A good security principle: always use the lowest privilege level that is adequate for the job. If there is a malfunction or an attack, this limits the amount of damage that can be caused.)&lt;BR /&gt;&lt;BR /&gt;Make sure that the private key file is never readable by anyone other than its owner. Otherwise the SSH tools will regard the key as "unsafe" and won't use it.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 14 Apr 2009 08:09:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-ssh-scp-sftp/m-p/5169412#M457693</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-04-14T08:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: using ssh/scp/sftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-ssh-scp-sftp/m-p/5169413#M457694</link>
      <description>Thanks Matti,&lt;BR /&gt;&lt;BR /&gt;It is claer now to me,...&lt;BR /&gt;&lt;BR /&gt;The reasone I generate a key with a root id, is because with any other user-id key I'm getting prompt for a passowrd to be entered on server B when using scp.&lt;BR /&gt;any idea way?&lt;BR /&gt;&lt;BR /&gt;Ahmed</description>
      <pubDate>Tue, 14 Apr 2009 08:34:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-ssh-scp-sftp/m-p/5169413#M457694</guid>
      <dc:creator>Ahmed_58</dc:creator>
      <dc:date>2009-04-14T08:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: using ssh/scp/sftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-ssh-scp-sftp/m-p/5169414#M457695</link>
      <description>Hi,&lt;BR /&gt;&amp;gt;&amp;gt;1. can server B access to server A?&lt;BR /&gt;No its not possible&lt;BR /&gt;&amp;gt;&amp;gt;2. can server B send files to server B?&lt;BR /&gt;Why you need this because your file is already into server B.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;The reasone I generate a key with a root id, is because with any other user-id key I'm getting prompt for a passowrd to be entered on server B when using scp.&lt;BR /&gt;&lt;BR /&gt;hey you can create this key with other user-id also by doing the same procedure you can create normal users passwd less key.&lt;BR /&gt;&lt;BR /&gt;Suraj&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Apr 2009 08:45:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-ssh-scp-sftp/m-p/5169414#M457695</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-04-14T08:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: using ssh/scp/sftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-ssh-scp-sftp/m-p/5169415#M457696</link>
      <description>Suraj,&lt;BR /&gt;Yes I did create a key with other user-id but when trying to scp server B I'm prompt to enter the password, but not if I'm a root.&lt;BR /&gt;&lt;BR /&gt;hope it is clear&lt;BR /&gt;&lt;BR /&gt;Ahmed</description>
      <pubDate>Tue, 14 Apr 2009 08:50:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-ssh-scp-sftp/m-p/5169415#M457696</guid>
      <dc:creator>Ahmed_58</dc:creator>
      <dc:date>2009-04-14T08:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: using ssh/scp/sftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-ssh-scp-sftp/m-p/5169416#M457697</link>
      <description>The most common cause for SSH key authentication problems is too much file permissions.&lt;BR /&gt;&lt;BR /&gt;If the home directory of the non-root user has "group write" or "everyone write" permissions, the ssh client will regard the home directory as "unsafe" - even if nobody other than this user belongs to the group. The client will refuse to use unsafe private keys.&lt;BR /&gt;&lt;BR /&gt;Maximum recommended permissions so that ssh key authentication still works:&lt;BR /&gt;&lt;BR /&gt;User's home directory: &lt;BR /&gt;chmod 755 or drwxr-xr-x&lt;BR /&gt;The directory must be owned by this user or root.&lt;BR /&gt;(If you need group-writable directories, you can create writable sub-directories within the home directory.)&lt;BR /&gt;&lt;BR /&gt;~/.ssh directory: &lt;BR /&gt;chmod 700 or drwx------&lt;BR /&gt;The directory must be owned by this user or root.&lt;BR /&gt;&lt;BR /&gt;~/.ssh/id_* files and ~/.ssh/authorized_keys file:&lt;BR /&gt;If the files exist, they must be owned by this user or root. File permissions of the private key files must be chmod 600 or -rw-------.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 14 Apr 2009 09:16:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-ssh-scp-sftp/m-p/5169416#M457697</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-04-14T09:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: using ssh/scp/sftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-ssh-scp-sftp/m-p/5169417#M457698</link>
      <description>thanks all, will try to work with permissions now.</description>
      <pubDate>Tue, 14 Apr 2009 09:26:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-ssh-scp-sftp/m-p/5169417#M457698</guid>
      <dc:creator>Ahmed_58</dc:creator>
      <dc:date>2009-04-14T09:26:41Z</dc:date>
    </item>
  </channel>
</rss>

