- Timestamp:
- Nov 14, 2010, 3:09:23 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified devel/pb/bin/pb ¶
r1102 r1105 519 519 pb_log(0, "Please ensure that sshd is running in your VM by default\n"); 520 520 pb_log(0, "and that it allows remote root login (PermitRootLogin yes in /etc/ssh/sshd_config)\n"); 521 pb_log(0, "Also ensure that network is up, firewalling correctly configured, and perl and scp/ssh installed\n"); 521 pb_log(0, "Also ensure that network is up, firewalling correctly configured\n"); 522 pb_log(0, "and perl, sudo, ntpdate and scp/ssh installed\n"); 522 523 pb_log(0, "You should then be able to login with ssh -p VMPORT root\@localhost (if VM started with pb)\n"); 523 524 } elsif ($action =~ /^setupve$/) { … … 2357 2358 $key = "\Q$zero1"; 2358 2359 2359 pb_system("cat $keyfile.pub | ssh -q -o UserKnownHostsFile=/dev/null -p $nport -i $keyfile root\@$vmhost->{$ENV{'PBPROJ'}} \"mkdir -p .ssh ; chmod 700 .ssh ; cat >> .ssh/authorized_keys ; chmod 600 .ssh/authorized_keys ; if [ -x /usr/bin/chcon ]; then /usr/bin/chcon -Rt home_ssh_t .ssh 2> /dev/null; fi\"","Copying local keys to $vtype. This may require the root password"); 2360 # We call true to avoid problems if SELinux is not activated, but chcon is present and returns in that case 1 2361 pb_system("cat $keyfile.pub | ssh -q -o UserKnownHostsFile=/dev/null -p $nport -i $keyfile root\@$vmhost->{$ENV{'PBPROJ'}} \"mkdir -p .ssh ; chmod 700 .ssh ; cat >> .ssh/authorized_keys ; chmod 600 .ssh/authorized_keys ; if [ -x /usr/bin/chcon ]; then /usr/bin/chcon -Rt home_ssh_t .ssh 2> /dev/null; /bin/true; fi\"","Copying local keys to $vtype. This may require the root password"); 2360 2362 # once this is done, we can do what we want on the VM remotely 2361 2363 } elsif ($vtype eq "ve") {
Note:
See TracChangeset
for help on using the changeset viewer.