linux中遇到得一些问题
1.scp传输文件报错
错误:no matching host key type found. Their offer: ssh-rsa,ssh-dss lost connection
解决办法:在scp命令下面增加 “-oHostKeyAlgorithms=+ssh-rsa”
例子
scp -oHostKeyAlgorithms=+ssh-rsa -r /home/snp/tomcat_jd snp@192.168.1.120:/home/snp/tomcat