?????????windows xp??ubuntu11.10?????
????ubuntu??????ssh
????windows??????putty???麗????pscp
????????????ubuntu??
????1.?????netstat-tl??service ssh status??ssh???????????????п??????service ssh restart??????????а???????sudo apt-get install openssh-server???ssh
????2.???????
??????????????iptables????????ubuntu????????????????????????????????
????Ubuntu????????а??У?????????????iptables?????????????ù????ufw
???????????????
????$sudo ufw default deny
????$sudo ufw enable
??????????????????????????????deny???????????????????????????ж????????????????????????????ufw??????′??????????????ufw???????????
?????????22????
????$sudo ufw allow 22
??????????/etc/services?У?22??????????????ssh???????????????????????
????$sudo ufw allow ssh
??????????????????????????????????????
????$sudo ufw status
????Firewall loaded
????To Action From
????–———-
????22:tcp ALLOW Anywhere
????22:udp ALLOW Anywhere
?????????????22????tcp??udpЭ?鶼?????
?????????windows?У?
??????putty.exe???????????????IP??port???22

???????????????????????ubuntu????????????????

??????cmd?????????????
????pscp????·??root@hostIp">root@hostIp:???·??
?????罫aaa.jpg????/home?£???pscp aaa.jpg root@192.168.0.101:/home
????????????

????ls??£?


??????????
???????????root??????????????????????????????????????????????????
??????linux??windows???????
??????windows??cmd??????pscp root@hostIp:linux??????·??windows?????·??
?????磺pscp root@192.168.0.100:/home/aaa.jpg G:/putty/
??????????pscp????????????????????????????????psftp
???????????????????
????????????ЩIP???????????/etc/hosts.allow?м??????ALL:ALL(???????е?IP???????????????????????ó???????????IP???????)
????????????ufw????ο?http://www.cnblogs.com/ylan2009/articles/2321136.html