-1

very time I'm trying to SCP something into my local linux it tells me... several things actually, starting with: Permission denied (publickey). lost connection Progressing forward, in this case its an image I am trying to move, I've tried several variations: scp -i key file_sending folder_recieving ssh key file_sending folder_recieving scp key -i file_sending folder_recieving scp {insert list of possible -i replacements + -i here} file_sending folder_recieving

^ replace all above leading with ssh instead.

I've tried them on both machines as well: Running a wsl on Windows. Also tried through VS - above variations. I should have to change it. The concept, nay the script is self is literally cut in dry. "Computer. Prepare to transfer file. You're gonna need a password first tho so, here have that... and this is gonna be the file, can ya grab that for me? thanks. Need you to put it over there now, brilliant!"

Nothing.

Dude do you know how many websites and Stack Overflow tickets have been opened on this topic as well. 45minutes of typing the same thing over, using two keys that I know are the keys, and two more I had on the machine but I know where not connected to the machine but figured hey, when it Rome?

Bubkiss.

At this point I'm under the impression something is f-ed with the machine SSH process. Side note: OpenSSH-server is no longer download about. Kinda side tracking but sudo apt install OpenSSH-server doesn't work. Says unable to locate package. Meanwhile, sudo systemctl status ssh that returned system has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down and sudo ufw allow 22 to set the port just skilled adding existing rule, should have so yay? At least something went right?

The closest I've gotten so far is scp key -i file_sending folder_recieving before it kicked back the key denial with an added: Waring file C:/../config not accessible: No such file or directory. name@host: permision denined It should be noted that at that the config is not the key but the key config file. One of the websites on my search said it'd be possible.

All and all, at this point I'm convinced there isn't a solution because the key itself got screwed. I was planning to scrap the machine box anyways because I need it on a external... that said, anyone have an idea of what might have caused this issue? Or can confirm? If it can be fixed, that'd be awesome - can still work from it before I change over. Thanks in advance.

HiB
  • 1
  • 2

1 Answers1

0

Did what Barlop suggested inside the comment section above. Found my keys too, they were located in a repository under a different name on my windows. Set them over to the proper folder. Problem has been resolved and I have not had any issues since. Thanks.

HiB
  • 1
  • 2