muriloventuroso / easyssh

The SSH connection manager to make your life easier.
GNU General Public License v3.0
519 stars 38 forks source link

"jump host" functionality #84

Open Cris70 opened 4 years ago

Cris70 commented 4 years ago

Hi, frst of all let me THANK YOU for this great program. I find very useful! I would like to use the "jump host" feature of ssh (-J switch). I used the "advanced" tab to configure it, but the problem is that you need another set of credentials to authenticate to the jump host, and there is nowhere to enter those. Ssh tries to ask interactively for the jump host credentials, but EasySSH does not let me enter anything and instead it stops with a "permission denied" error. Would it be possible to add support for this very useful feature?

Cris70 commented 4 years ago

Ten months and not even a reply. Is this software still being developed?

muriloventuroso commented 4 years ago

Hello, thanks for the feedback and sorry for the delay in responding. I develop this project in my spare time and lately I'm not having much time to dedicate to it. I'm even looking for people to help with maintenance, if you know someone ... Regarding the jump host functionality, I still don't have plans for implementation because I don't use it in my day-to-day life, so I don't know the best way to implement it in graphical mode. But we can discuss here the best way to do it. For example, this problem of not allowing to enter the password of the jump host, could you give me more details? So I can test it here and fix it faster.

Cris70 commented 4 years ago

Hi @muriloventuroso, thank you for your reply. Jump host is a great functionality of ssh that helps when you're behind a firewall and you can only "enter" one host through ssh, but once you're in that host you can then ssh to all (or part) of the other hosts in the intranet. So you actually use the one host that you're enabled to enter as a platform to "jump" onto the other hosts.

EasySSH does not support the jump host functionality natively, but you can use that by entering -J user@host in the Advanced tab "Extra arguments" field. However, there's no way of supplying a password in the command line (and you shouldn't anyway, because that would not be secure), so either you enable passwordless ssh login on the host that you use as jump platform, or you face an error in EasySSH because it tries to feed the final host password to the password prompt that comes from the jump host.

I hope I have described it well enough, but if you have questions don't hesitate to ask.

muriloventuroso commented 3 years ago

Thank you for the explanation. In the last release (1.7.3) I made some adjustments to the login password filling mechanism. With this it will be possible to use the jump functionality through the advanced commands without EasySSH trying to fill the password out of time. Soon we will have this functionality fully integrated into the application. But for now it didn't cause so much trouble.