use sshfs to mount remote filesystem , command sample

安裝 command : apt-get install sshfs sshfs [[email protected]]host:[remote_directory] mountpoint [options] sshfs -p 2200 [email protected]:/home/rimmon DEV fusermount -u DEV sshfs -p 2200 -o reconnect [email protected]:/mnt/tslog_bak ~/TSLOG_BAK fusermount -u ~/TSLOG_BAK 速度測試 sshfs -p 2200 -o reconnect [email protected]:/mnt/tslog_bak ~/TSLOG_BAK 1.1G 費時 19秒 , 約 55MB/s

Use dd command to backup whole disk to image file , acer desktop , win7 , pv(pipe viewer example)

Acer ASPIRE M1930 partition layout Same PC but install windows7   — OK! 在 virtualbox 測試 dd if=/dev/sda | pv | ssh -p 2200 [email protected] ‘cat > winxp2.dd.img’ ssh -p 2200 [email protected] ‘cat winxp2.dd.img’ | pv | dd of=/dev/sda — OK! 把 Acer PC 整個硬碟備份到遠端 server 的 image file dd if=/dev/sda | pv | ssh … Read more

[memo] ssh tunnels

ssh -D 12345 -o TCPKeepAlive=yes -o ServerAliveInterval=10 -p 2200 [email protected] ssh -D 12345 -o TCPKeepAlive=yes -o ServerAliveInterval=10 [email protected] ssh -L 33389: -o TCPKeepAlive=yes -o ServerAliveInterval=10 -p 2200 [email protected]   # —– ssh -L 8000: -o TCPKeepAlive=yes -o ServerAliveInterval=10 -p 2200 [email protected] 說明: 在本機端(port 8000) 建立一個與 的 ssh (port 2200) 通道, 由 連向 … Read more

Use Subversion with SSH on non standard port / svn on ssh tunnels

server 端: [email protected]:~$ pwd /home/rimmon [email protected]:~$ svnadmin create SVN 改 SVN/conf/svnserve.conf [general] anon-access = none password-db = passwd realm = Chicago_SVN — client 端: 在 ~/.subversion/config 加上 ### Section for configuring tunnel agents. [tunnels] mmm = ssh -p 2200 -q — checkout : svn co svn+mmm:// .     cat .subversion/config   [tunnels] foo = ssh -p … Read more