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

Dial Home with key file #20

Open
rucciva opened this issue Feb 9, 2022 · 2 comments · May be fixed by #21
Open

Dial Home with key file #20

rucciva opened this issue Feb 9, 2022 · 2 comments · May be fixed by #21

Comments

@rucciva
Copy link

rucciva commented Feb 9, 2022

Hi, thanks for making this awesome tools. Would like to use it as a backup ssh on a bare metal that has no remote management interface.

So is there any chance on implementing dial home ssh with support for private key? or any bash trick to read the password from file instead? I'm thinking of starting the command at startup

@Fahrj
Copy link
Owner

Fahrj commented Feb 12, 2022

Hi @rucciva ,

I did some tests, but before getting too deep into it, I wanted to clarify what exactly your use case is.
As I understand you want to start ReverseSSH at startup and let it dial to another machine and open the listener there, right?

I assume you are aware of the option to define the password during compile time.
It is not really mentioned on the Readme, but this password (mainly used to authenticate incoming connections), is also send a single time to the remote host, to streamline connection establishment between two identical ReverseSSH binaries.

I would, however, consider this only a workaround for your use-case, as you might want to have different passwords for incoming or outgoing connections.

The generic approach to pipe the password into ReverseSSH does not work, unfortunately.

Thus, my suggestion would be to add an -i flag which can be specified to load a private ssh key to be used while dialing home, similar to default ssh.

I hope that will work for your use-case!

@rucciva
Copy link
Author

rucciva commented Feb 14, 2022

As I understand you want to start ReverseSSH at startup and let it dial to another machine and open the listener there, right?

Yes you're right

It is not really mentioned on the Readme, but this password (mainly used to authenticate incoming connections), is also send a single time to the remote host, to streamline connection establishment between two identical ReverseSSH binaries.

i'm aware of this too, just want to avoid re-compile each time i change a password or each time backup connection to multiple machine with different password required.

Thus, my suggestion would be to add an -i flag which can be specified to load a private ssh key to be used while dialing home, similar to default ssh.

This will definitely work in my case. Thank you

@Fahrj Fahrj linked a pull request Feb 14, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants