зачем кому нужны четыре лишние строки?
2. существенное. Вот коробка с настроенным ssh по ключу. Вроде как всё прилично.
Однако передаваемая командв в ssh протоколе команда
debug1: Sending command: sh syst | in Description
не отрабатывается. WTF?!
$ ssh ch28-2
ch28-2.sw#sh ver
Active-image: flash://system/images/mes3300-4012-R183.ros
Version: 4.0.12
Commit: 1d69b051
Build: 183 (master)
MD5 Digest: 43b8f8f3caeda940a068af397d930183
Date: 04-Apr-2019
Time: 12:51:57
Inactive-image: flash://system/images/_image1.bin
Version: 4.0.9.5
Commit: 8d4b43f5
Build: 23 (master)
MD5 Digest: 37d4337fa0701a9c397c936b2a82f1aa
Date: 12-Jul-2018
Time: 16:15:49
ch28-2.sw#sh syst | in Description
System Description: MES2324P AC 28-port 1G/10G Managed Switch with 24 POE+ ports
ch28-2.sw#exitConnection to ch28-2 closed.
$ ssh ch28-2 "sh syst | in Description"
Received disconnect from 172.24.2.188: 2:
A client is already connected
$ echo "sh syst | in Description" | ssh ch28-2
Pseudo-terminal will not be allocated because stdin is not a terminal.
Write failed: Broken pipe
$