Dump Over SSH

From Secure Computing Wiki
Jump to: navigation, search

Perform DUMP over SSH tunnel

killall dhclient
ifconfig <interface> inet <ipaddress>/<netmask>
route add default <default router>
umount /mnt
newfs -U /dev/ad0s1a
mount /dev/ad0s1a /mnt/
vim /etc/ssh/sshd_config, PermitRootLogin yes
passwd, set root password
/etc/rc.d/sshd start
# edit /etc/rc.conf and set up hostname and IP info for new machine
dump -0aLf - / | ssh <ipaddress> "cd /mnt/ && cat | restore -rf -"
# revert /etc/rc.conf
Personal tools
Namespaces
Variants
Actions
Miscellaneous
Operating Systems
Toolbox