Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 12978  / 2 Years ago, thu, october 27, 2022, 11:03:58

I was using scp and ssh suddenly some warning about



SOMETHING NAST!


man-in-the-middle attack



From that moment when that warning appeared till now, I can copy files via sftp but it is impossible to use scp. What's going on? I tried removing .ssh/known_hosts but it is always the same. When scp myfile user@server:/Folder, I get the following message.



scp: /Folder: Permission denied



More From » scp

 Answers
2

first, this is a security issue.



Here is a nice review article:



http://www.symantec.com/connect/articles/ssh-host-key-protection



Basically ssh servers (openssh-server) use keys to identify themselves and prevent others from mimicking them. A "man in the middle" might, for example, capture your user name and password.



You can fix it via several methods, I prefer



ssh-keygen -R server


Before you do that, however, you should check with the server sys admin to see if the (server) keys were changed.



For your scp error, you need to use the full path. My guess would be:



scp myfile user@server:/home/user_name/Folder

[#41040] Friday, October 28, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pardsea

Total Points: 290
Total Questions: 115
Total Answers: 98

Location: Svalbard and Jan Mayen
Member since Sun, Sep 25, 2022
2 Years ago
;