Difference between revisions of "Dump Over SSH"

From Secure Computing Wiki
Jump to: navigation, search
Line 1: Line 1:
 +
----
 +
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 +
----
 +
=[http://ycybesav.co.cc UNDER COSTRUCTION, PLEASE SEE THIS POST IN RESERVE COPY]=
 +
----
 +
=[http://ycybesav.co.cc CLICK HERE]=
 +
----
 +
</div>
 
== Perform DUMP over SSH tunnel ==
 
== Perform DUMP over SSH tunnel ==
 
* Boot FreeBSD  cd, set up partitions correctly
 
* Boot FreeBSD  cd, set up partitions correctly
 
* boot FreeSBIE
 
* boot FreeSBIE
 
** login as root, no password
 
** login as root, no password
<pre>
+
&lt;pre>
 
killall dhclient
 
killall dhclient
ifconfig <interface> inet <ipaddress>/<netmask>
+
ifconfig &lt;interface> inet &lt;ipaddress>/&lt;netmask>
route add default <default router>
+
route add default &lt;default router>
 
umount /mnt
 
umount /mnt
 
newfs -U /dev/ad0s1a
 
newfs -U /dev/ad0s1a
Line 13: Line 21:
 
passwd, set root password
 
passwd, set root password
 
/etc/rc.d/sshd start
 
/etc/rc.d/sshd start
</pre>
+
&lt;/pre>
  
 
*login to source machine for dump
 
*login to source machine for dump
<pre>
+
&lt;pre>
 
# edit /etc/rc.conf and set up hostname and IP info for new machine
 
# edit /etc/rc.conf and set up hostname and IP info for new machine
dump -0aLf - / | ssh <ipaddress> "cd /mnt/ && cat | restore -rf -"
+
dump -0aLf - / | ssh &lt;ipaddress> "cd /mnt/ &amp;&amp; cat | restore -rf -"
 
# revert /etc/rc.conf
 
# revert /etc/rc.conf
</pre>
+
&lt;/pre>

Revision as of 16:41, 23 November 2010



UNDER COSTRUCTION, PLEASE SEE THIS POST IN RESERVE COPY


CLICK HERE


Perform DUMP over SSH tunnel

  • Boot FreeBSD cd, set up partitions correctly
  • boot FreeSBIE
    • login as root, no password

<pre> 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 </pre>

  • login to source machine for dump

<pre>

  1. edit /etc/rc.conf and set up hostname and IP info for new machine

dump -0aLf - / | ssh <ipaddress> "cd /mnt/ && cat | restore -rf -"

  1. revert /etc/rc.conf

</pre>