diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-06 17:57:26 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-06 17:57:26 +0200 |
commit | 6c60542d0d5b82d45a751db9409e82af3e732fa2 (patch) | |
tree | f6083a8107470c9985d5e8de92b40bfec5859819 /gitjoe-addsshkey.pl | |
parent | Fix again (diff) | |
download | joe-scripts-6c60542d0d5b82d45a751db9409e82af3e732fa2.tar.gz joe-scripts-6c60542d0d5b82d45a751db9409e82af3e732fa2.tar.bz2 joe-scripts-6c60542d0d5b82d45a751db9409e82af3e732fa2.tar.xz joe-scripts-6c60542d0d5b82d45a751db9409e82af3e732fa2.tar.zst joe-scripts-6c60542d0d5b82d45a751db9409e82af3e732fa2.zip |
Better sshekys
Diffstat (limited to '')
-rwxr-xr-x | gitjoe-addsshkey.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gitjoe-addsshkey.pl b/gitjoe-addsshkey.pl index b42f117..0768c0a 100755 --- a/gitjoe-addsshkey.pl +++ b/gitjoe-addsshkey.pl @@ -14,7 +14,8 @@ sub main { exit 1; } my $usr = $ARGV[0]; - my $sshkey = $ARGV[1]; + my $sshkey = "no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty "; + $sshkey += $ARGV[2]; my $home_dir = '/usr/home/' . $usr . '/'; open(my $fh, '>>:encoding(UTF-8)', $home_dir . '.ssh/authorized_keys'); print $fh "$sshkey\n"; |