Transport preferred command behavior.

Answered Question

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?

Correct Answer by Edison Ortiz about 8 years 2 months ago

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Edison Ortiz Wed, 05/06/2009 - 11:27
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

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.

Actions

This Discussion