in reply to Re^4: get ssh key passphrase from agent
in thread get ssh key passphrase from agent
Thank you for helping. Sure:
#!/usr/bin/perl -w use Net::SSH2; my $ssh2 = Net::SSH2->new(); $ssh2->connect('158.226.63.99') or $ssh2->die_with_error; $ssh2->auth_agent('z004kapc') or $ssh2->die_with_error; my $chan = $ssh2->channel() or $ssh2->die_with_error; $chan->exec('pwd') or $ssh2->die_with_error; print while <$chan>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: get ssh key passphrase from agent
by Corion (Patriarch) on Aug 31, 2022 at 07:54 UTC | |
by ninto1 (Novice) on Aug 31, 2022 at 08:03 UTC | |
by Corion (Patriarch) on Aug 31, 2022 at 08:21 UTC | |
by ninto1 (Novice) on Aug 31, 2022 at 08:32 UTC | |
by Corion (Patriarch) on Aug 31, 2022 at 09:04 UTC | |
by Corion (Patriarch) on Sep 16, 2022 at 16:51 UTC |