Refer to the exhibit. An engineer receives this error message when trying to access another router in-band from the serial interface connected to the console of R1. Which configuration is needed on R1 to resolve this issue?
A.
R1(config)#line vty 0 R1(config-line)# transport output ssh
B.
R1(config)#line console 0 R1(config-line)# transport output ssh
C.
R1(config)#line console 0 R1(config-line)# transport preferred ssh
D.
R1(config)#line vty 0 R1(config-line)# transport output ssh R1(config-line)# transport preferred ssh
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#lin vty 0
R2(config-line)#transport output ssh
R2(config-line)#transport preferred ssh
R2(config-line)#^Z
R2#conf t
*Feb 8 20:47:02.183: %SYS-5-CONFIG_I: Configured from console by console
R2#ssh -l admin 10.0.0.1
% ssh connections not permitted from this terminal
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#line con 0
R2(config-line)#transport output ssh
R2(config-line)#transport output ssh
R2(config-line)#^Z
R2#ssh -l admin 10.0.0.1
*Feb 8 20:47:37.523: %SYS-5-CONFIG_I: Configured from console by console
R2#ssh -l admin 10.0.0.1
Password:
R1#
I also tested it, and the result was answer B for me, too.
On R1 under "line con 0" "transport output none".
When first connecting through serial cable to R1 and then connecting via ssh to the other router "% ssh connections not permitted from this terminal" appeared.
Solution: On R1 under "line con 0" "transport output ssh".
Changing the configuration under "line vty 0 4" had no effect.
Also tested the other scenario: first ssh to R1 and then ssh to the other device.
In this case, "line vty 0 4" "transport output none" produced the same error.
"line vty 0 4" "transport output ssh" was required for successful connection to the other device via ssh.
The point that we need to understand is that the command is not saying enable ssh on the serial cable but the command allow us from the console session to have remote sessions using ssh, same for the vty lines in that case you are saying that if you are connected in a session using the vty lines you can use the command for doing an ssh connection via the switch
here my example:
R1#show running-config | sec line
line con 0
logging synchronous
transport output ssh
line aux 0
line vty 0 4
login local
transport preferred ssh
transport input telnet ssh
transport output none
R1#sho
R1#show users
Line User Host(s) Idle Location
* 0 con 0 idle 00:00:00
Interface User Mode Idle Peer Address
R1#ssh
R1#ssh -l Cisco 172.16.2.2
Password:
R2>
In GNS3:
IOU:
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
login local
transport output none
IOU2#ssh -l cisco 1.1.1.1
% ssh connections not permitted from this terminal
IOU
IOU2(config)#line con 0
IOU2(config-line)#transport output all
IOU2(config-line)#
IOU2(config)#exit
IOU2#
IOU2#ssh -l cisco 1.1.1.1
Password:
*Jul 23 14:07:44.808: %SYS-5-CONFIG_I: Configured from console by console
B is correct
preferred doesn't matter as we are definining ssh with this command: ssh -l cisco 1.1.1.1
I never heard that you could use SSH protocol on the Serial interface... My understanding of the question is that you use serial console to connect to R1 then use SSH to connect to another device over the VTY
Look at this post and look at Aaron's response
https://community.cisco.com/t5/switching/transport-preferred-ssh-command-at-console-line/m-p/4469002#M511050
This article (https://packetu.com/2016/07/07/understanding-transport-output-access-class/) supports my and other people opinion that the answer is C, that you should change the config for the line console 0, not for the line vty 0 4
It's in the wording of the question. It says that you (engineer) are connected to this router via it's console. So your current session is under the consoles rules/config. Altering the VTY on the router which your logged into the console will have no effect on you being able to SSH outbound to another device.
upvoted 7 times
...
...
...
...
This section is not available anymore. Please use the main Exam Page.300-410 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
tseen
Highly Voted 2 years, 2 months agoHungarianDish_111
Highly Voted 2 years agoHungarianDish_111
2 years agoXBfoundX
Most Recent 6 months, 1 week agoXBfoundX
6 months, 1 week agoXBfoundX
6 months, 1 week agobk989
9 months, 2 weeks agobk989
9 months, 2 weeks agobk989
8 months, 3 weeks agobk989
8 months, 3 weeks ago[Removed]
9 months, 2 weeks agointeldarvid
1 year, 9 months agoguy276465281819372
1 year, 10 months agoHuntkey
2 years, 6 months agoHuntkey
2 years, 6 months agonetworkWiz
2 years, 8 months agoNhan
2 years, 10 months agoYaPet
3 years, 2 months agokrn007
3 years, 4 months agoMr_RaCailum
3 years, 8 months ago[Removed]
3 years, 9 months agoRHK0783
3 years, 11 months agoZachTL11
4 years agoDaanB
4 years, 1 month agoDaanB
4 years, 1 month agosteiger
3 years, 6 months agoAlnet
3 years, 6 months ago