<?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 how to provide password in case of batch files(ssh protocol) in Operating System - Microsoft</title>
    <link>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740440#M11162</link>
    <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I m new to this forum .&lt;BR /&gt;Need to know the procedure to provide the password in case of batch files , also i m working on ssh protocol .&lt;BR /&gt;What i m trying is given below::&lt;BR /&gt;&lt;BR /&gt;IF "%1"=="" GOTO :END &lt;BR /&gt;SET PASSWD=%1 &lt;BR /&gt;CALL otherbat &lt;BR /&gt;:END &lt;BR /&gt;REM maybe echo a warning that everything else will not work properly &lt;BR /&gt;REM because of a missing password &lt;BR /&gt;&lt;BR /&gt;OTHERBAT.BAT &lt;BR /&gt;&lt;BR /&gt;echo %PASSWD%| ssh root@&lt;IPADDR&gt;  &lt;BR /&gt;OR&lt;BR /&gt;echo "PASSWD"&amp;gt;ssh IP -l root&lt;BR /&gt;&lt;BR /&gt;Problem:: It is not accepting the password, everytime i m supposed to enter the same manually .&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;manoj&lt;BR /&gt;&lt;/IPADDR&gt;</description>
    <pubDate>Tue, 28 Feb 2006 00:47:01 GMT</pubDate>
    <dc:creator>ManojKumar</dc:creator>
    <dc:date>2006-02-28T00:47:01Z</dc:date>
    <item>
      <title>how to provide password in case of batch files(ssh protocol)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740440#M11162</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I m new to this forum .&lt;BR /&gt;Need to know the procedure to provide the password in case of batch files , also i m working on ssh protocol .&lt;BR /&gt;What i m trying is given below::&lt;BR /&gt;&lt;BR /&gt;IF "%1"=="" GOTO :END &lt;BR /&gt;SET PASSWD=%1 &lt;BR /&gt;CALL otherbat &lt;BR /&gt;:END &lt;BR /&gt;REM maybe echo a warning that everything else will not work properly &lt;BR /&gt;REM because of a missing password &lt;BR /&gt;&lt;BR /&gt;OTHERBAT.BAT &lt;BR /&gt;&lt;BR /&gt;echo %PASSWD%| ssh root@&lt;IPADDR&gt;  &lt;BR /&gt;OR&lt;BR /&gt;echo "PASSWD"&amp;gt;ssh IP -l root&lt;BR /&gt;&lt;BR /&gt;Problem:: It is not accepting the password, everytime i m supposed to enter the same manually .&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;manoj&lt;BR /&gt;&lt;/IPADDR&gt;</description>
      <pubDate>Tue, 28 Feb 2006 00:47:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740440#M11162</guid>
      <dc:creator>ManojKumar</dc:creator>
      <dc:date>2006-02-28T00:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide password in case of batch files(ssh protocol)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740441#M11163</link>
      <description>hi manoj,&lt;BR /&gt;&lt;BR /&gt;have a look at this thread:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=190528" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=190528&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Tue, 28 Feb 2006 00:56:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740441#M11163</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2006-02-28T00:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide password in case of batch files(ssh protocol)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740442#M11164</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;actually i don't want to disable the password prompt .&lt;BR /&gt;Also, i want to use the same in windows .&lt;BR /&gt;&lt;BR /&gt;Need to know the procedure to provide the password .&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;manoj</description>
      <pubDate>Tue, 28 Feb 2006 03:46:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740442#M11164</guid>
      <dc:creator>ManojKumar</dc:creator>
      <dc:date>2006-02-28T03:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide password in case of batch files(ssh protocol)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740443#M11165</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;((insert lecture about hard coded password here))&lt;BR /&gt;&lt;BR /&gt;I couldn't tell if you start you client from Unix or DOS.&lt;BR /&gt;&lt;BR /&gt;I haven't seen any way to send password from Unix.&lt;BR /&gt;&lt;BR /&gt;however if you are using putty, &lt;BR /&gt;there is a -pw option which might help you.&lt;BR /&gt;&lt;BR /&gt;Jean-Yves Picard&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Feb 2006 04:56:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740443#M11165</guid>
      <dc:creator>Jean-Yves Picard</dc:creator>
      <dc:date>2006-02-28T04:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide password in case of batch files(ssh protocol)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740444#M11166</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Like FTP, SSH will not accept password from a batch file. My suggestion is to set up public key authentication between those machines. Else if security of your password is not a concern for you, then an expect script can automate your ssh login.&lt;BR /&gt;&lt;BR /&gt;A simple search in this forum about public key authentication will result in number of threads explaining how to set up public authentication.&lt;BR /&gt;&lt;BR /&gt;Also you can try man ssh, scp and sftp</description>
      <pubDate>Tue, 28 Feb 2006 05:04:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740444#M11166</guid>
      <dc:creator>Michael Selvesteen_2</dc:creator>
      <dc:date>2006-02-28T05:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide password in case of batch files(ssh protocol)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740445#M11167</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It' really nice to hear from u guys-- .&lt;BR /&gt;&lt;BR /&gt;Actually i don't want to use any tool like putty, cygwin, SSHSecureShellClient-3.2.9b283 etc.. .&lt;BR /&gt;&lt;BR /&gt;I just want to execute one simple command using windows platform-&lt;BR /&gt; i.e. ssh -T root@&lt;IPADDR&gt; &lt;BR /&gt;and want to provide the password through my program .&lt;BR /&gt;&lt;BR /&gt;Presently i m using batch files .Need to know the procedure / hint --how to provide the password .&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;manoj&lt;/IPADDR&gt;</description>
      <pubDate>Tue, 28 Feb 2006 05:09:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740445#M11167</guid>
      <dc:creator>ManojKumar</dc:creator>
      <dc:date>2006-02-28T05:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide password in case of batch files(ssh protocol)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740446#M11168</link>
      <description>Sorry, how come you have ssh on windows if you didn't install a ssh client?</description>
      <pubDate>Wed, 01 Mar 2006 03:32:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740446#M11168</guid>
      <dc:creator>paolo barila</dc:creator>
      <dc:date>2006-03-01T03:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide password in case of batch files(ssh protocol)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740447#M11169</link>
      <description>Hi Paolo,&lt;BR /&gt;&lt;BR /&gt;Actually i m using OpenSsh . I have pasted the dll' and ssh.exe in the system32 folder of Windows .&lt;BR /&gt;&lt;BR /&gt;Now, i can run the ssh.exe from any directory .&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;manoj&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Mar 2006 03:37:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740447#M11169</guid>
      <dc:creator>ManojKumar</dc:creator>
      <dc:date>2006-03-01T03:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide password in case of batch files(ssh protocol)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740448#M11170</link>
      <description>Hi,&lt;BR /&gt;I would install a ssh client and configure a publickey authentication:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=999102" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=999102&lt;/A&gt;</description>
      <pubDate>Wed, 01 Mar 2006 04:14:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740448#M11170</guid>
      <dc:creator>paolo barila</dc:creator>
      <dc:date>2006-03-01T04:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide password in case of batch files(ssh protocol)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740449#M11171</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It' nice to see yr quick replies .&lt;BR /&gt;&lt;BR /&gt;I need a mechanism to provide the password .&lt;BR /&gt;Public key authentication is basically for password-less-login (as per my knowledge). &lt;BR /&gt;&lt;BR /&gt;I am using windows platform and i want to execute a single ssh command, also i want to provide the password through my program .&lt;BR /&gt;&lt;BR /&gt;That' all from my side---&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;manoj&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Mar 2006 04:21:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740449#M11171</guid>
      <dc:creator>ManojKumar</dc:creator>
      <dc:date>2006-03-01T04:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide password in case of batch files(ssh protocol)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740450#M11172</link>
      <description>so, as Michael Selvesteen said,&lt;BR /&gt;I think you should use expect&lt;BR /&gt;&lt;A href="http://expect.nist.gov" target="_blank"&gt;http://expect.nist.gov&lt;/A&gt;</description>
      <pubDate>Wed, 01 Mar 2006 04:59:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740450#M11172</guid>
      <dc:creator>paolo barila</dc:creator>
      <dc:date>2006-03-01T04:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide password in case of batch files(ssh protocol)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740451#M11173</link>
      <description>Expect is a very nice way to create interaction with the shell for automation&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I would use expect to handle the issue. &lt;BR /&gt;In the script below I am using scp to scp a file from one server to another. &lt;BR /&gt;&lt;BR /&gt;#!/usr/local/bin/expect&lt;BR /&gt;spawn /usr/local/bin/scp -v /tmp/*apphire.txt user@IPADDRESS:/tmp &lt;BR /&gt;expect "user@IPADDRESS's password:"&lt;BR /&gt;send "password\r"&lt;BR /&gt;expect "debug: uninitializing event loop"&lt;BR /&gt;send "\r"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For your case &lt;BR /&gt;&lt;BR /&gt;#!/usr/local/bin/expect &lt;BR /&gt;spawn ssh root@IPADDRESS &lt;BR /&gt;expect "user@IPADDRESS's password:"&lt;BR /&gt;send "password\r"&lt;BR /&gt;expect "Authentication successful."&lt;BR /&gt;send "\r"&lt;BR /&gt;&lt;BR /&gt;Download expect and give it a try,</description>
      <pubDate>Wed, 01 Mar 2006 09:13:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/how-to-provide-password-in-case-of-batch-files-ssh-protocol/m-p/3740451#M11173</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2006-03-01T09:13:33Z</dc:date>
    </item>
  </channel>
</rss>

