From 6bee0c6e4a5037ccff47207814f20a407b6e5e23 Mon Sep 17 00:00:00 2001 From: lissav Date: Sun, 21 Feb 2010 17:48:50 +0000 Subject: [PATCH] fix xdsh -K for non-root user with mounted home directory git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5249 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/remoteshell.expect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/sbin/remoteshell.expect b/xCAT-server/sbin/remoteshell.expect index 5ca6ebf76..75ca54370 100644 --- a/xCAT-server/sbin/remoteshell.expect +++ b/xCAT-server/sbin/remoteshell.expect @@ -167,7 +167,7 @@ if { [llength $argv] != 0 } { set printlist [ join $nodelist ", " ] set scp "/usr/bin/scp" set directory "$home/.ssh" - set fh_auth_keys [ open "$home/.ssh/authorized_keys" "r"] + set fh_auth_keys [ open "$home/.ssh/tmp/authorized_keys" "r"] set auth_keys [read $fh_auth_keys] close $fh_auth_keys if { [info exists env(DSH_REMOTE_PASSWORD)] } { @@ -202,7 +202,7 @@ if { [llength $argv] != 0 } { exec /bin/kill $pid } } - set pid [ spawn $scp $directory/authorized_keys $to_userid\@$node:/tmp/$to_userid/.ssh ] + set pid [ spawn $scp $directory/tmp/authorized_keys $to_userid\@$node:/tmp/$to_userid/.ssh ] expect { "Are you sure you want to continue connecting (yes/no)?" { send "yes\r"