What is this SSH syntax?

us flag

customer has a kind of proxy system for securing access. The way it access is as bellow from powershell (OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2):

ssh myAllowedUser[[email protected]]

Where is this syntax from? I've tried to replicate this, thinking if it was a ProxyJump, without success

-J [user@]host[:port]
             Connect to the target host by first making a ssh connection to the jump host and then establishing a
             TCP forwarding to the ultimate destination from there.  Multiple jump hops may be specified separated
             by comma characters.  This is a shortcut to specify a ProxyJump configuration directive.

PS C:\Users\xxxx> ssh -J [email protected] [email protected]
[email protected]'s password:
channel 0: open failed: administratively prohibited: open failed
stdio forwarding failed
kex_exchange_identification: Connection closed by remote host

I wish, when I understand what is being done, create my ssh config file as this

    User myAllowedUser
    ProxyJump #Just for example here
    ServerAliveInterval 10

and then later just:


I appreciate any kind of help. Thanks

raj avatar
ye flag
Isn't `myAllowedUser[[email protected]]` just a very specific form of login name used to login to ``? And seeing this login name, the machine `` knows internally where to connect...
Jankiel Goldman avatar
us flag
@raj yes, yesterday I noticed that 3 hours later. I'll add answer here with more details. Nonetheless, many thanks for your time.
us flag

So, in the end was just a specific way that password vault use login string. That way bellow works as expected.

    User myAllowedUser[[email protected]]
    ServerAliveInterval 10
cn flag

You can use it in the CLI as:

myAllowedUser%userTarget%[email protected]

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.