File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -365,7 +365,7 @@ def self.mirror_push_public_key
365
365
git_user_dir = ( %x[ #{ GitHosting . git_user_runner } "cd ~ ; pwd" ] ) . chomp . strip
366
366
%x[ #{ GitHosting . git_user_runner } 'echo "#{ pubk } " > ~/.ssh/gitolite_admin_id_rsa.pub ' ]
367
367
%x[ echo '#!/bin/sh' | #{ GitHosting . git_user_runner } 'cat > ~/.ssh/run_gitolite_admin_ssh']
368
- %x[ echo 'exec ssh -o BatchMode=yes -o StrictHostKeyChecking=no -i #{ git_user_dir } /.ssh/gitolite_admin_id_rsa "$@"' | #{ GitHosting . git_user_runner } "cat >> ~/.ssh/run_gitolite_admin_ssh" ]
368
+ %x[ echo 'exec ssh -T - o BatchMode=yes -o StrictHostKeyChecking=no -p #{ GitHostingConf . ssh_server_local_port } -i #{ git_user_dir } /.ssh/gitolite_admin_id_rsa "$@"' | #{ GitHosting . git_user_runner } "cat >> ~/.ssh/run_gitolite_admin_ssh" ]
369
369
%x[ #{ GitHosting . git_user_runner } 'chmod 644 ~/.ssh/gitolite_admin_id_rsa.pub' ]
370
370
%x[ #{ GitHosting . git_user_runner } 'chmod 600 ~/.ssh/gitolite_admin_id_rsa']
371
371
%x[ #{ GitHosting . git_user_runner } 'chmod 700 ~/.ssh/run_gitolite_admin_ssh']
You can’t perform that action at this time.
0 commit comments