I configured ssh for remote access on my SW-1. Suppose if I want to remote access (SSH) my SW-1 from SW-2 what is the command I need to type in my SW-2.
-
Unsolved CCENT - SSH Remote Login Command
-
If you've got everything properly configured for SSH, you've got a couple of options:
SW2#ssh -l admin <IP Address of SW1>
or
SW2#ssh admin@ <IP Address of SW1>
Cordially,
Ronnie Wong
Edutainer Manager, ACI Learning [ITPRO]
*if the post has answered the question, mark as solved.
**All "answers" and responses are offered "as is" and my opinion. There is no implied service, support, or guarantee by ITProTV. -
Ronnie. Correct me if I'm wrong, but could you also just type ssh IP address then Enter?
If the user is already connected to SW-1 via ssh, the username for the current user will be passed thus eliminating the need to specify username.
If the user is consoled into SW-1, you would need to specify the username unless you have the console settings set to use the local credentials via the login local command or login authentication default if using AAA New Model.
NMF
-
@Amador-Torrez said in CCENT - SSH Remote Login Command:
Ronnie. Correct me if I'm wrong, but could you also just type ssh IP address then Enter? If the user is already connected to SW-1 via ssh, the username for the current user will be passed thus eliminating the need to specify username.
That sounds logical. To tell you the truth, I've never done it any other way beside the above way I listed. It's not that there isn't any other way...it just means I'm stuck in the way that I've done things!
If the user is consoled into SW-1, you would need to specify the username unless you have the console settings set to use the local credentials via the login local command or login authentication default if using AAA New Model.
If CONSOLED in, you only need to specify the username if you've done something like:
SW1(config)#line con 0 SW1(config-line)#login local SW1(config)#username Ronnie password cisco123
If you haven't configured the console access, then plugging in the console port via the console cable is directly connected. You'll just need a terminal program to connect in (e.g. if you're on Windows you'll probably download PuTTY for this access or if you're on a Linux or Mac, you can just use the terminal program.)
Cordially,
Ronnie Wong
Edutainer Manager, ACI Learning [ITPRO]
*if the post has answered the question, mark as solved.
**All "answers" and responses are offered "as is" and my opinion. There is no implied service, support, or guarantee by ITProTV.