Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Migration from one HN to another

570 bytes added, 08:05, 27 May 2012
Summary
== Summary ==
OLD SERVER:
[root@OpenVZ ~]# ssh-keygen -t rsa
[root@OpenVZ ~]# cd .ssh/
[root@OpenVZ .ssh]# scp id_rsa.pub root@10.1.5.6:./id_rsa.pub
 
NEW SERVER:
[root@Char ~]# cd .ssh/
[root@Char .ssh]# touch authorized_keys2
[root@Char .ssh]# chmod 600 authorized_keys2
[root@Char .ssh]# cat ../id_rsa.pub >> authorized_keys2
[root@Char .ssh]# rm ../id_rsa.pub
rm: remove regular file `../id_rsa.pub'? y
 
OLD SERVER: (test if we can ssh without password)
[root@OpenVZ .ssh]# ssh -2 -v root@10.1.5.6
 
OLD SERVER: migrate VM 101 to 10.1.5.6
[root@OpenVZ .ssh]# vzmigrate 10.1.5.6 101
== Setting up SSH keys ==
6
edits