<?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: Supplying password and user name to scp command in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/supplying-password-and-user-name-to-scp-command/m-p/4155020#M83436</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;ssh-key-gen -t dsa&lt;BR /&gt;&lt;ENTER default="" through="" all="" options=""&gt;&lt;BR /&gt;copy the id_dsa.pub file to the target system and append it to the $HOME/.ssh/authorized_keys file&lt;BR /&gt;&lt;BR /&gt;Make sure the owner of the home and .ssh directories is consistent with the user that lives there.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/ENTER&gt;</description>
    <pubDate>Wed, 05 Mar 2008 11:00:00 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2008-03-05T11:00:00Z</dc:date>
    <item>
      <title>Supplying password and user name to scp command</title>
      <link>https://community.hpe.com/t5/operating-system-linux/supplying-password-and-user-name-to-scp-command/m-p/4155016#M83432</link>
      <description>&lt;BR /&gt;Hi all,&lt;BR /&gt;Can any one tell me how to copy a file in a remote machine through any script.Provided  the username and password are given with the following command:&lt;BR /&gt;&lt;BR /&gt;scp root@15.02.5.5:/home/jaguar/file.txt /home/have&lt;BR /&gt;&lt;BR /&gt;Please explain how to supply the password in the script.Thanks in advance</description>
      <pubDate>Tue, 04 Mar 2008 12:19:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/supplying-password-and-user-name-to-scp-command/m-p/4155016#M83432</guid>
      <dc:creator>Karthik_sg</dc:creator>
      <dc:date>2008-03-04T12:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Supplying password and user name to scp command</title>
      <link>https://community.hpe.com/t5/operating-system-linux/supplying-password-and-user-name-to-scp-command/m-p/4155017#M83433</link>
      <description>Two options:&lt;BR /&gt;&lt;BR /&gt;- Use public key authentication&lt;BR /&gt;- Use expect script&lt;BR /&gt;&lt;BR /&gt;Recommendation:&lt;BR /&gt;&lt;BR /&gt;Disable root access for SSH.</description>
      <pubDate>Tue, 04 Mar 2008 12:51:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/supplying-password-and-user-name-to-scp-command/m-p/4155017#M83433</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-03-04T12:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Supplying password and user name to scp command</title>
      <link>https://community.hpe.com/t5/operating-system-linux/supplying-password-and-user-name-to-scp-command/m-p/4155018#M83434</link>
      <description>Can u give any me any sample code for expect script.Thanks.</description>
      <pubDate>Wed, 05 Mar 2008 05:27:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/supplying-password-and-user-name-to-scp-command/m-p/4155018#M83434</guid>
      <dc:creator>Karthik_sg</dc:creator>
      <dc:date>2008-03-05T05:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Supplying password and user name to scp command</title>
      <link>https://community.hpe.com/t5/operating-system-linux/supplying-password-and-user-name-to-scp-command/m-p/4155019#M83435</link>
      <description>Login as the user that will be doing the transfer on each of the systems and run "ssh-keygen". Set a blank passphrase and save the keys in the default location "~/.ssh".&lt;BR /&gt;&lt;BR /&gt;Copy the "id_[r|d]sa.pub" (public key) of each of the systems to the other and then add/append them to the "~/.ssh/authorized_keys". Make sure that the key is one continuous line and does not contain &lt;CR&gt;'s, as this won't work.&lt;BR /&gt;&lt;BR /&gt;Also ensure that the permissions are correctly set on the ".ssh 0700", "id_rsa 0600", "id_rsa.pub 0644".&lt;BR /&gt;&lt;BR /&gt;To test try SSH and SCP as this user in both directions. if there is a problem run "ssh -v" to see the debug output.&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;Andrew&lt;/CR&gt;</description>
      <pubDate>Wed, 05 Mar 2008 09:04:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/supplying-password-and-user-name-to-scp-command/m-p/4155019#M83435</guid>
      <dc:creator>Andrew Cowan</dc:creator>
      <dc:date>2008-03-05T09:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Supplying password and user name to scp command</title>
      <link>https://community.hpe.com/t5/operating-system-linux/supplying-password-and-user-name-to-scp-command/m-p/4155020#M83436</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;ssh-key-gen -t dsa&lt;BR /&gt;&lt;ENTER default="" through="" all="" options=""&gt;&lt;BR /&gt;copy the id_dsa.pub file to the target system and append it to the $HOME/.ssh/authorized_keys file&lt;BR /&gt;&lt;BR /&gt;Make sure the owner of the home and .ssh directories is consistent with the user that lives there.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/ENTER&gt;</description>
      <pubDate>Wed, 05 Mar 2008 11:00:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/supplying-password-and-user-name-to-scp-command/m-p/4155020#M83436</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-03-05T11:00:00Z</dc:date>
    </item>
  </channel>
</rss>

