<?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 Is auto-scp or auto-sftp possible? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/is-auto-scp-or-auto-sftp-possible/m-p/2951164#M4260</link>
    <description>Anybody has experienced this problem? I know for auto-ftp, I can create .netrc, how about ftp under secure shell environment?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;</description>
    <pubDate>Tue, 15 Apr 2003 01:19:59 GMT</pubDate>
    <dc:creator>zhaogui</dc:creator>
    <dc:date>2003-04-15T01:19:59Z</dc:date>
    <item>
      <title>Is auto-scp or auto-sftp possible?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-auto-scp-or-auto-sftp-possible/m-p/2951164#M4260</link>
      <description>Anybody has experienced this problem? I know for auto-ftp, I can create .netrc, how about ftp under secure shell environment?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Apr 2003 01:19:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-auto-scp-or-auto-sftp-possible/m-p/2951164#M4260</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2003-04-15T01:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is auto-scp or auto-sftp possible?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-auto-scp-or-auto-sftp-possible/m-p/2951165#M4261</link>
      <description>Definitely !&lt;BR /&gt;Adding an authentification in $HOME/.rhosts, $HOME/.shosts, /etc/hosts.equiv, or /etc/shosts.equiv, and allowing RSA based auth on the first time will let you do it.&lt;BR /&gt;Have a read on man ssh for further details, knowing that scp and sftp rely on ssh, therefore use the same ruling bases.&lt;BR /&gt;Hope it helps&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Apr 2003 08:51:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-auto-scp-or-auto-sftp-possible/m-p/2951165#M4261</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2003-04-15T08:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is auto-scp or auto-sftp possible?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/is-auto-scp-or-auto-sftp-possible/m-p/2951166#M4262</link>
      <description>Both scp and sftp support public/private key authentication.&lt;BR /&gt;&lt;BR /&gt;Tyhe basic steps are:&lt;BR /&gt;&lt;BR /&gt;1) Use ssh-keygen to create a public/private key pair in you ~/.ssh directory (for RSA keys, they are id_rsa and id_rsa.pub, respectively). &lt;BR /&gt;&lt;BR /&gt;ssh-keygen -t rsa &lt;BR /&gt;&lt;BR /&gt;(hit enter when prompted for a passphrase)&lt;BR /&gt;&lt;BR /&gt;2) Copy the public key file to the remote host, as ~/.ssh/authorized_keys.&lt;BR /&gt;&lt;BR /&gt;scp ~/.ssh/id_rsa.pub remotehost:.ssh/authorized_keys&lt;BR /&gt;(create the .ssh directory in your home directory on remotehost, if one is not already created)&lt;BR /&gt;&lt;BR /&gt;When you run ssh, scp or sftp, your local host will authenticate with the remote host using the key pairs, by-passing the password prompting.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As an added level of security, you can specify a passphrase when generating your private/public key pair.  This will encrypt your private key, so if it gets stolen it will be of no value unless the theif knows the passphrase used to encrypt/decrypt it.  If you do this, then you need to set up an ssh-agent to automatically decrypt your passphrase on your local machine:&lt;BR /&gt;&lt;BR /&gt;1) ssh-agent &amp;gt; .ssh-agent &lt;BR /&gt;2) . ./.ssh-agent&lt;BR /&gt;3) ssh-add&lt;BR /&gt;&lt;BR /&gt;1) starts an ssh-agent on your local machine and saves the environment variables in a file called .ssh-agent&lt;BR /&gt;&lt;BR /&gt;2) sources the environment variables into your current shell, so ssh will know how to contact the ssh-agent&lt;BR /&gt;&lt;BR /&gt;3) ssh-add will prompt you fopr the passphrase you used to encrypt your private key, and load it into ssh-agent.&lt;BR /&gt;&lt;BR /&gt;From then on, ssh-agent will provide your private key (unencrypted) whenever you make an ssh connection to remotehost.&lt;BR /&gt;&lt;BR /&gt;You will need to repeat steps 2 and 3 for each new shell you start up.  Step one is good until you restart your local machine.&lt;BR /&gt;&lt;BR /&gt;See the ssh, ssh-keygen, ssh-agent and ssh-add man pages for more specifics, and</description>
      <pubDate>Tue, 15 Apr 2003 13:29:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/is-auto-scp-or-auto-sftp-possible/m-p/2951166#M4262</guid>
      <dc:creator>Bill Douglass</dc:creator>
      <dc:date>2003-04-15T13:29:14Z</dc:date>
    </item>
  </channel>
</rss>

