<?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 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/scp/m-p/2636090#M89773</link>
    <description>All,  I've setup public and private keys for ssh so that I would NOT need to provide  a passphrase when logging in.  However,  sometime when I do an "scp" and when the server can't authenticate, it ask if it should put the host  name into the known_hosts2 file.  This annoys me, is there a way to tell it, yes go ahead and do it, don't ask.  Thanks.</description>
    <pubDate>Thu, 27 Dec 2001 22:53:00 GMT</pubDate>
    <dc:creator>K.C. Chan</dc:creator>
    <dc:date>2001-12-27T22:53:00Z</dc:date>
    <item>
      <title>scp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/scp/m-p/2636090#M89773</link>
      <description>All,  I've setup public and private keys for ssh so that I would NOT need to provide  a passphrase when logging in.  However,  sometime when I do an "scp" and when the server can't authenticate, it ask if it should put the host  name into the known_hosts2 file.  This annoys me, is there a way to tell it, yes go ahead and do it, don't ask.  Thanks.</description>
      <pubDate>Thu, 27 Dec 2001 22:53:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/scp/m-p/2636090#M89773</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2001-12-27T22:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: scp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/scp/m-p/2636091#M89774</link>
      <description />
      <pubDate>Fri, 28 Dec 2001 12:59:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/scp/m-p/2636091#M89774</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2001-12-28T12:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: scp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/scp/m-p/2636092#M89775</link>
      <description>sorry correction:&lt;BR /&gt;if host connect A Y B &lt;BR /&gt;the know_host of host A contains &lt;BR /&gt;hostB,ip and password encryp generated whith ssh-keygen or ssh_host_key and copy and paste the contains of identity.pub &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Dec 2001 13:02:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/scp/m-p/2636092#M89775</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2001-12-28T13:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: scp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/scp/m-p/2636093#M89776</link>
      <description>Hi Michael,&lt;BR /&gt;&lt;BR /&gt;In my experience, ssh / scp only asks you if you want to add the host to the known hosts until you answer yes.  Once it's a known host, ssh will not bother you again for that host.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Fri, 28 Dec 2001 20:51:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/scp/m-p/2636093#M89776</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-12-28T20:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: scp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/scp/m-p/2636094#M89777</link>
      <description>Michael, &lt;BR /&gt;&lt;BR /&gt;The way around this is to add the hosts to the global know_hosts2 file (specified in ssh.config), and have that file checked first before the user's own files. Thus once root has accepted a particular host, everyone will recognize that host as being ok, and the question won't be asked again. &lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Fri, 28 Dec 2001 22:39:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/scp/m-p/2636094#M89777</guid>
      <dc:creator>Mark Fenton</dc:creator>
      <dc:date>2001-12-28T22:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: scp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/scp/m-p/2636095#M89778</link>
      <description>Hi all, if you know what hosts you will be using, can't you proactively add the host in manaully via some sort of command?  what I want to do is  &lt;BR /&gt;has out /etc/hosts and add them to the known_hosts2 file.  Thanks.</description>
      <pubDate>Tue, 01 Jan 2002 14:20:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/scp/m-p/2636095#M89778</guid>
      <dc:creator>Michael Chan_3</dc:creator>
      <dc:date>2002-01-01T14:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: scp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/scp/m-p/2636096#M89779</link>
      <description>In theory that would work -- you just need to know the host's name, IP and public key. (take a look at this excerpt from a known_hosts2 file for an example):&lt;BR /&gt;host.somedomain.com,xxx.xxx.xxx.xxx ssh-rsa 5AAAB3NzaC1yc2EAAAABIwAAAIEAosJtIznGMOqLA/TU89f3q+7YbIPg4ohl4TbWuhY9fn5PQMDksZsypf5D9FyqFKIUnSxFMRY8wAI0S6t/h2Ur8aSh/RcPe4MIVAuIs5wad4DSL3Xz7arW1GMJNt3yTOnt8NntSLb/XEjguN1FtdxA2L84l/5M07v4cqcfKFaVUE0=&lt;BR /&gt;&lt;BR /&gt;If you set up the keys for all the hosts yourself, then you should have the host keys available. copy the info in the format listed above into a known_hosts2 file (either one for each user who will be using ssh, or to the system default known_hosts2 file) and it should work. &lt;BR /&gt;&lt;BR /&gt;As to how to automate this -- I suppose if you generated all the keys on one server, you could just copy all the ssh_host_xxx_key.pub (where xxx is either rsa or dsa as appropriate) files into one known_hosts2 file, and then edit to include the hostname and ip.</description>
      <pubDate>Wed, 02 Jan 2002 23:59:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/scp/m-p/2636096#M89779</guid>
      <dc:creator>Mark Fenton</dc:creator>
      <dc:date>2002-01-02T23:59:16Z</dc:date>
    </item>
  </channel>
</rss>

