应该是权限没开吧。 1.install ssh on host and VM unit : sudo apt-get install ssh 2.check ssh has been installed: ps -aux|grep sshd 3. Edit sshd.config both on host and VM os : gedit /etc/ssh/sshd_config change "#PermitRootLogin prohibit-password " to "PermitRootLogin yes" sudo /etc/init.d/ssh stop sudo /etc/init.d/ssh restart 4. on VM unit scp /usr/test.log [email protected]:/usr
1.install ssh on host and VM unit :
sudo apt-get install ssh
2.check ssh has been installed:
ps -aux|grep sshd
3. Edit sshd.config both on host and VM os :
gedit /etc/ssh/sshd_config
change "#PermitRootLogin prohibit-password " to "PermitRootLogin yes"
sudo /etc/init.d/ssh stop
sudo /etc/init.d/ssh restart
4. on VM unit
scp /usr/test.log [email protected]:/usr