This article provides information on how to change the username, when trying to SSH from one switch to another switch.
When attempting to SSH from one switch to another switch, the other switch does not prompt for a username. It will use the same username that is used to SSH to the other switch. The following example illustrates the behavior:
{master:0} root@Replication> ssh 10.9.221.251 The authenticity of host '10.9.221.251 (10.9.221.251)' can't be established. RSA key fingerprint is bb:b9:32:09:a4:a6:8c:40:78:2f:43:27:af:f6:ec:51. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '10.9.221.251' (RSA) to the list of known hosts. root @10.9.221.251's password --- JUNOS 10.4R2.6 built 2011-02-06 23:48:13 UTC root@:RE:0%:
Use the hostname, before defining the IP Address, with the @ symbol:
ssh username@ip-address
{master:0} root@Replication> ssh [email protected] TEST @10.9.221.251's password : --- JUNOS 10.4R2.6 built 2011-02-06 23:48:13 UTC TEST >