Re: SSH connection to a cisco switch in a script

"Suite Potato" <[email protected]> Thu, 27 Nov 2008 16:40:52 -0500
Newsgroups gmane.network.ssh.windows
Message-ID <[email protected]>
------=_Part_18548_33343109.1227822052550
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I think this is a place to start:
http://nixcraft.com/shell-scripting/4489-ssh-passing-unix-login-passwords-through-shell-scripts.html

-suitepotato-




On Thu, Nov 27, 2008 at 9:49 AM, Hofmann, Berthold <
[email protected]> wrote:

> Hello,
>
> have a script which connects every night with telnet to all cisco switches,
> and stores
> the config. I want change this script to use ssh instead of telnet, but how
> can I
> give the password for ssh in the script, because I don't know, how can I
> can create a
> authorized_keys file on the switch. I know it is not a very good idea to
> save a password
> in a file, but I need a solution for this problem. I would like to do the
> script without
> another software if possible.
>
> Best Regards
>
> Berthold
>
> --
> List Info:      http://erdelynet.com/ssh-l/
> List Archives:  http://erdelynet.com/archive/ssh-l/
> To Unsubscribe: Mail mailto:[email protected]<ssh%[email protected]>
> If you are having trouble unsubscribing, visit the List Info page for help.
>
>
>

------=_Part_18548_33343109.1227822052550
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I think this is a place to start: <a href="http://nixcraft.com/shell-scripting/4489-ssh-passing-unix-login-passwords-through-shell-scripts.html">http://nixcraft.com/shell-scripting/4489-ssh-passing-unix-login-passwords-through-shell-scripts.html</a><br>
<br>-suitepotato-<br><br><br><br><br><div class="gmail_quote">On Thu, Nov 27, 2008 at 9:49 AM, Hofmann, Berthold <span dir="ltr">&lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>
<br>
have a script which connects every night with telnet to all cisco switches, and stores<br>
the config. I want change this script to use ssh instead of telnet, but how can I<br>
give the password for ssh in the script, because I don&#39;t know, how can I can create a<br>
authorized_keys file on the switch. I know it is not a very good idea to save a password<br>
in a file, but I need a solution for this problem. I would like to do the script without<br>
another software if possible.<br>
<br>
Best Regards<br>
<br>
Berthold<br>
<font color="#888888"><br>
--<br>
List Info: &nbsp; &nbsp; &nbsp;<a href="http://erdelynet.com/ssh-l/" target="_blank">http://erdelynet.com/ssh-l/</a><br>
List Archives: &nbsp;<a href="http://erdelynet.com/archive/ssh-l/" target="_blank">http://erdelynet.com/archive/ssh-l/</a><br>
To Unsubscribe: Mail mailto:<a href="mailto:ssh%[email protected]">[email protected]</a><br>
If you are having trouble unsubscribing, visit the List Info page for help.<br>
<br>
<br>
</font></blockquote></div><br>

------=_Part_18548_33343109.1227822052550--

--
List Info:      http://erdelynet.com/ssh-l/
List Archives:  http://erdelynet.com/archive/ssh-l/
To Unsubscribe: Mail mailto:[email protected]
If you are having trouble unsubscribing, visit the List Info page for help.