I haven't been able to do it for months with Putty, Bitvise...
Downloading and uploading via Powershell works. But via Putty and Bitvise impossible - although SSH works. Bitvise has an SCP browser. Strangely enough, I can upload and download to/ from my remote server (Ubuntu 22.04) via it. Same with WinSCP.
Host/ Client OS -> Windows 10
VPS-Remote Server OS -> Ubuntu 22.04.3
Every instruction, every answer always different. Most are about Linux-2-Linux.
I have an ed25519 SSH-Key to login into my Ubuntu-Server. Uploaded public-key with success through Powershell into my Server ~/.ssh/authorized_keys. Deactivated root, password-login and so on.When I created my key I renamed it with a custom name. But with custom name it denied login access through Powershell into my Server. Although it worked with custom-name with Putty (needed to convert from OpenSSH to ppk format for Putty) and Bitwise. So I renamed it to default-name "id_ed25519". Is that normal?
But my problem is that I cannot down- & upload with my SSH-Clients (Putty, Bitvise) USER@MYIP: Permission denied (publickey). Orssh: Could not resolve hostname c: Temporary failure in name resolution
I use these commands in Powershell:
For uploading into my Server: scp -r C:\Users\USER\RANDOMFILEORFOLDER USER@MYIP:~/
For downloading to my local Computer: scp -r USER@MYIP:RANDOMFILEORFOLDER C:\Users\USER\Downloads
Tried it without/ with sudo.
Command how I created key (with Powershell): ssh-keygen -t ed25519 -a 150 -f %userprofile%/.ssh/customname -C "servername"
Have tried it out with umpteen different variants from comments here and there, Tutorials. E.g.
scp -P 22 USER@UBUNTUSERVERIP:/home/USER/test.txt C:\Users\NAME\Downloads
scp -P 22 USER@UBUNTUSERVERIP:/home/USER/test.txt USER@WINDOWSIP:C:\Users\NAME\Downloads\