From: Cliff Rosson Date: 2013-05-09T03:05:51+09:00 Subject: Re: Connect to a switch with SSH --047d7b111d8f8a29cb04dc38c866 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable putty will have to be in your path to run it from a command line FYI On Wed, May 8, 2013 at 11:00 AM, Cliff Rosson wrote= : > ssh is a unix program. It is used instead of putty. Putty is fine as well= . > putty -ssh user@devicename > > Try this > > putty -ssh username@devicename > > > Does that work? > > In your ruby script what do the following variables look like > > please do > > >> p CISCO > =3D> > >> p USERNAME > =3D> > >> p PASSWORD > > Particularly are there newline characters in there that shouldn't be? > > > On Wed, May 8, 2013 at 10:53 AM, Rud=E1 G. wrote: > >> I can only authenticate with Putty. >> >> I tried on the Windows Prompt: >> ssh user@XX.XX.XXX.XX >> >> Output: >> ssh is not recognized as an internal or external command >> >> How do I enable/install the ssh command? >> >> -- >> Posted via http://www.ruby-forum.com/. >> >> > > > -- > vizualize.me/cliffrosson > --=20 vizualize.me/cliffrosson --047d7b111d8f8a29cb04dc38c866 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
putty will have to be in your path to run it from a comman= d line FYI


On Wed, May 8, 2013 at 11:00 AM, Cliff Rosson <cliff.rosson@gmail.= com> wrote:
ssh is a = unix program. It is used instead of putty. Putty is fine as well. putty -ss= h user@devicename

Try this

putty -ssh username@device= name


Does that work?

In your ruby script what do the following variables look like
please do

>> p CISCO
=3D>=A0
>> p U= SERNAME
=3D>
>> p PASSWORD

Particularly are there newline characters in there that shouldn't= be?


<= div class=3D"im">On Wed, May 8, 2013 at 10:53 AM, Rud=E1 G. <lists@ruby= -forum.com> wrote:
I can only auth= enticate with Putty.

I tried on the Windows Prompt:
ssh user@XX.XX.XXX.XX

Output:
ssh is not recognized as an internal or external command

How do I enable/install the ssh command?



--



--
vizualize.me/cliffro= sson
--047d7b111d8f8a29cb04dc38c866--