通过scp进行configuration传输,不在瞻博networkingEX-2200交换机上运行

我在Junos EX-2200交换机上进行了一系列configuration更改。我把这台路由器通过以太网电缆连接到另一台PC。交换机的IP地址是192.168.1.1。我可以从192.168.1.1 ping到192.168 .1.0,反之亦然。

更改后,我做了以下命令

set system archival configuration transfer-on-commit set system archival configuration archive-sites "scp://[email protected]:/home/karthik/ws_karthik/sw1_config_1.txt" password godfather commit 

如果用户名为“karthik”,密码为“教父”,则上述path也存在于系统中

我怎么看不到在指定的path创build的configuration文件sw1_config_1.txt。

另外我已经validation了sshd正在PC上运行(192.168.1.10)

我在这里做错了什么?

如果有人能帮助我,那将是非常好的。

您不需要包含文件名。 JunOS会命名文件本身:

将其更改为:

 set system archival configuration archive-sites "scp://[email protected]:/home/karthik/ws_karthik/" password godfather 

确保删除旧的归档网站(因为它不会用新值replace它们)。