Re: ssh problem

From: garry baker <baker.garry_at_gmail.com>
Date: Tue, 19 Oct 2010 14:41:39 -0500

how does it work with no user name specified after the -l option? and of
course a space between -p and the port number?

without the -l i would say it is using the username that you are logged in
as, which would be cisco or you would get an error:

R1>login
Username: vyatta
Password:

R1#sh users
    Line User Host(s) Idle Location
* 0 con 0 vyatta idle 00:00:00

  Interface User Mode Idle Peer Address

R1#ssh -p 2001 1.1.1.1
% Authorization failed.

[Connection to 1.1.1.1 closed by foreign host]
R1#login
Username: cisco
Password:
R1#sh users
    Line User Host(s) Idle Location
* 0 con 0 cisco idle 00:00:00

  Interface User Mode Idle Peer Address

R1#ssh -p 2001 1.1.1.1

Password:

R2#show users
    Line User Host(s) Idle Location
   0 con 0 idle 00:02:47
*162 vty 0 cisco idle 00:00:00

--
Garry L. Baker
"There is no 'patch' for stupidity." - www.sqlsecurity.com
On Tue, Oct 19, 2010 at 2:16 PM, Jack <ccie.unnumbered_at_gmail.com> wrote:
> aaa new
> aaa authen login def local non
> aaa author exec def local
> username cisco pri 15 pass cisco
> ip domain-name cisco.com
> crypto key gen rsa
> ip ssh port 2001 ro 1
> int lo0 1.1.1.1 255.255.255.255
> line vty 0 4
> trans input ssh
> rotary 1
>
>
> ssh -l -p2001 1.1.1.1
> Password:
>
>
>
>
> Please advise what's wrong?  What password is it asking for?
>
> Thanks,
> Jack
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
Blogs and organic groups at http://www.ccie.net
Received on Tue Oct 19 2010 - 14:41:39 ART

This archive was generated by hypermail 2.2.0 : Mon Nov 01 2010 - 06:42:06 ART