Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

Bronze

Transport preferred command behavior.

I am in the process of converting our devices over to SSH. I am trying to make this as seemless as possible.

Here is the issue:

I want to be able to type an IP at the CLI and use SSH, instead of the default method of telnet.

I want to not have to use the SSH command to initiate sessions to other devices.

Here is my SSH config:

crypto key gen rsa gen label SSH_Keys mod 1024

ip ssh version 2

ip ssh authentication-retries 3

ip ssh time-out 90

ip ssh logging events

username bret secret test

enable secret cisco

aaa new-model

aaa authentication login default local

aaa authentication enable default enable

line con 0

transport preferred ssh

line vty 0 4

transport input ssh

transport preferred ssh

This is on a 2821 router with c2800nm-adventerprisek9-mz.124-24.T.bin loaded.

Is this even possible?

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Bronze

Re: Transport preferred command behavior.

No, it's not possible. You need to use the ssh -l [username] [ip address] syntax.

When typing just the IP address, you aren't invoking the telnet command or whatever is set as default transport, you are invoking the connect command which supports only few protocols

http://www.cisco.com/en/US/docs/ios/termserv/command/reference/tsv_a1.html#wp1026460

HTH,

__

Edison.

2 REPLIES
Hall of Fame Super Bronze

Re: Transport preferred command behavior.

No, it's not possible. You need to use the ssh -l [username] [ip address] syntax.

When typing just the IP address, you aren't invoking the telnet command or whatever is set as default transport, you are invoking the connect command which supports only few protocols

http://www.cisco.com/en/US/docs/ios/termserv/command/reference/tsv_a1.html#wp1026460

HTH,

__

Edison.

Bronze

Re: Transport preferred command behavior.

Edison,

Thanks for clearing that up. The "connect" command. I'll have to look that up with that link.

Bret

254
Views
0
Helpful
2
Replies