aboutsummaryrefslogtreecommitdiffstats
path: root/gitjoe-addsshkey.pl
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-06 17:59:42 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-06 17:59:42 +0200
commit394ceed56cdd71cc7cc6199a863f9d10b2ce626f (patch)
tree06bbad74e8a43c2449577cd44bece52e5a617028 /gitjoe-addsshkey.pl
parentBetter sshekys (diff)
downloadjoe-scripts-394ceed56cdd71cc7cc6199a863f9d10b2ce626f.tar.gz
joe-scripts-394ceed56cdd71cc7cc6199a863f9d10b2ce626f.tar.bz2
joe-scripts-394ceed56cdd71cc7cc6199a863f9d10b2ce626f.tar.xz
joe-scripts-394ceed56cdd71cc7cc6199a863f9d10b2ce626f.tar.zst
joe-scripts-394ceed56cdd71cc7cc6199a863f9d10b2ce626f.zip
Better like this
Diffstat (limited to '')
-rwxr-xr-xgitjoe-addsshkey.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitjoe-addsshkey.pl b/gitjoe-addsshkey.pl
index 0768c0a..d7e0477 100755
--- a/gitjoe-addsshkey.pl
+++ b/gitjoe-addsshkey.pl
@@ -15,7 +15,7 @@ sub main {
}
my $usr = $ARGV[0];
my $sshkey = "no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ";
- $sshkey += $ARGV[2];
+ $sshkey = $sshkey . $ARGV[1];
my $home_dir = '/usr/home/' . $usr . '/';
open(my $fh, '>>:encoding(UTF-8)', $home_dir . '.ssh/authorized_keys');
print $fh "$sshkey\n";