Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cyberark #1347

Closed
zerofoolcoder opened this issue Nov 17, 2023 · 1 comment
Closed

Cyberark #1347

zerofoolcoder opened this issue Nov 17, 2023 · 1 comment
Labels

Comments

@zerofoolcoder
Copy link

Hi,

I have to automate some maintenance stuff and I tried connecting to a server (which is behind Cyberark) to run some commands, but I can't figure out how to provide the address to ssh2 so I can connect successfully.

What I usually do in the terminal is something like this:

ssh cyberark_user@server_user@server_ip@cyberark_ip ls -la

After providing the password, I get the output of the command.

Is this format supported? cyberark_user@server_user@server_ip@cyberark_ip

Thanks and Regards

@mscdex
Copy link
Owner

mscdex commented Nov 17, 2023

I don't know what that command line is supposed to do connection-wise. If it's using a series of jump hosts with the right-most hostname being the final destination, then you certainly can do that with ssh2, but you will need to connect to each one in succession manually by having successive ssh2 connections use a forwarded connection socket as the underlying ssh socket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants