diff options
-rwxr-xr-x | gitjoe-addsshkey.pl | 3 | ||||
-rwxr-xr-x | gitjoe-newuser.pl | 3 |
2 files changed, 4 insertions, 2 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"; diff --git a/gitjoe-newuser.pl b/gitjoe-newuser.pl index bd3c8ca..c64892d 100755 --- a/gitjoe-newuser.pl +++ b/gitjoe-newuser.pl @@ -15,7 +15,8 @@ sub main { } my $usr = $ARGV[0]; my $pass = $ARGV[1]; - my $sshkey = $ARGV[2]; + my $sshkey = "no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty "; + $sshkey += $ARGV[2]; my $home_dir = '/usr/home/' . $usr . '/'; system( '/usr/local/bin/dash', |