Laravel-ssh-client icon indicating copy to clipboard operation
Laravel-ssh-client copied to clipboard

Public key connection

Open petericebear opened this issue 5 years ago • 5 comments

Hi,

Would it be possible that if a user has a public key stored in his account that it can connect passwordless? A use case would be, to have a page with CSS tabs on it, and login using public key encryption also by a screen reference (tmux session name) so it can be reloaded.

Do you have any experience with that? Or would you be willing to build that? (paid ofc..)

I found a resource on it. https://jordanelver.co.uk/blog/2010/11/27/automatically-attaching-to-a-tmux-session-via-ssh/

petericebear avatar Aug 03 '20 07:08 petericebear

If you want it you can build your own :) Jose J. Anton

El lun., 3 ago. 2020 a las 9:32, Peter Steenbergen (< [email protected]>) escribió:

Hi,

Would it be possible that if a user has a public key stored in his account that it can connect passwordless? A use case would be, to have a page with CSS tabs on it, and login using public key encryption also by a screen reference (tmux session name) so it can be reloaded.

Do you have any experience with that? Or would you be willing to build that? (paid ofc..)

I found a resource on it.

https://jordanelver.co.uk/blog/2010/11/27/automatically-attaching-to-a-tmux-session-via-ssh/

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/roke22/Laravel-ssh-client/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLRQPIDBOUT2COREAUQJNDR6ZRZTANCNFSM4PTBVWXQ .

roke22 avatar Aug 03 '20 07:08 roke22

Maybe you should try https://github.com/billchurch/webssh2 i based this project in that one and have more functionallity,

roke22 avatar Aug 03 '20 07:08 roke22

Nah, I will try this one out no problem. I saw the function: https://www.php.net/manual/en/function.ssh2-auth-pubkey-file.php

If I can make it work, I will send in a PR

petericebear avatar Aug 03 '20 07:08 petericebear

is it working ?

perfectwebtech avatar Apr 03 '21 21:04 perfectwebtech

also is there in terminal some predefined command input possible how ?

perfectwebtech avatar Apr 03 '21 21:04 perfectwebtech