Cisco Support Community
Community Member

Explanation of basic SSH commands?

Hi, I'm studying for my CCNA and needed some help understanding the function of some basic ssh commands. In simple English if possible I'm very new to networking in general. ip domain-name - What does the command actually do why do we need this for SSH to work? login local - after using the "transport input ssh" command i was told to use this command, what does it mean and what does it do? One last thing, when on an end device command prompt what does the " -l " mean? i.e. PC> ssh -l user Thanks.
Everyone's tags (1)
Hall of Fame Super Silver

The ip domain-name command

The ip domain-name command assigns the host (device) a domain name to more precisely identify it. The FQDN (hostname + domain-name) is used by the device when you generate a local RSA host key which is a prerequisite for running secure shell (ssh) as it is used to encrypt the traffic.

The "-l" is simply a way to specify the username to use when initiating an ssh client session from the device. See the command reference here. (By the way on NX-OS we use "ssh username@server".)

CreatePlease to create content