Re: What is the ssh_config equivalent to this syntax involving multiple at signs

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Wed, 27 Dec 2017, Garbage@xxxxxx wrote:

> My company uses a certain product which forces me to use a jumphost /
> ssh proxy.
>
> When connecting to a server I have to type "ssh
> myuser@technicaluser@targethost@jumphost" everytime. I tried to
> simplify this by editing my ssh_config and putting this into the file:
>
> Host targethost
>   ProxyJump technicaluser@jumphost
> 
> These lines are recognized but don't work like intended because
> all that changes is that ssh now asks for the password of the
> technicaluser (for which I don't have a password due to security
> design). When I run the ssh command with the three at signs this works
> fine, all I'm prompted for is the password of myuser.

You're probably using a proxy that is trying to do some "smart" username
to destination user/host mapping. ProxyJump is for servers that don't try
to be over clever :)

Maybe something like:

Host targethost
	Hostname jumphost
	Username myuser@technicaluser@targethost

Will do what you want.

-d
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux