As a diagnostic, you can use ssh -v to test out the connection as it uses the same underlying mechanism as scp. This might tell you where things are failing (user name? host name? key type?).
OpenSSH_9.6p1 Ubuntu-3ubuntu13.5, OpenSSL 3.0.13 30 Jan 2024
debug1: Reading configuration data /home/perkel/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to pop-os [192.168.1.178] port 22.
debug1: connect to address 192.168.1.178 port 22: Connection refused
ssh: connect to host pop-os port 22: Connection refused
root@OpenWrt:/etc/config# scp -r perkel@pop-os:/home/perkel/Documents/* etc/init.d/adblock-lean/
Host 'pop-os' is not in the trusted hosts file.
(ssh-ed25519 fingerprint SHA256:xxxxxxxxxxxxxxxxxxxxxxxx)
Do you want to continue connecting? (y/n) y
james@pop-os's password:
etc/init.d/adblock-lean/: No such file or directory
etc/init.d/adblock-lean/: No such file or directory
root@OpenWrt:/etc/init.d# scp -r james@pop-os:/home/james/Documents/* /etc/init.d/adblock-lean/
james@pop-os's password:
/etc/init.d/adblock-lean/: Is a directory
/etc/init.d/adblock-lean/: Is a directory
in adblock-lean (etc/init.d/adblock-lean) there is the process file and when I do cat /etc/init.d/adblock-lean I can read it, so why I can't scp it?
root@OpenWrt:/tmp# scp perkel@pop-os:/etc/init.d/adblock-lean/* /home/perkel/Documents/
perkel@pop-os's password:
scp: /etc/init.d/adblock-lean/*: No such file or directory