Ssh and scp to router

hi,

as you can see here, when I'm loggin to my router I have to enter a passphrase, but when I try to add something via scp to router, I can't cause I can't add my passphrase during the process, do you know if it possible? When I was on ubuntu I think it worked but not on fedora.
thanks

james@neon ~]$ ssh 192.168.1.1 -l root -i ~/.ssh/id_localrouter
Enter passphrase for key '/home/james/.ssh/id_localrouter': 


BusyBox v1.34.1 (2021-12-31 20:03:44 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r18457+9-4b587f2561
 -----------------------------------------------------
root@OpenWrt:~# exit
Connection to 192.168.1.1 closed.
[james@neon ~]$ scp /run/media/james/D/openwrt/bin/targets/mvebu/cortexa9/openwrt-snapshot-r18468+9-4a2cca7824-mvebu-cortexa9-linksys_wrt3200acm-squashfs-sysupgrade.bin root@192.168.1.1:/tmp/
root@192.168.1.1: Permission denied (publickey).
lost connection
[james@neon ~]$ 


You can add the path to your key.

scp -i ~/.ssh/id_localrouter /run/media/james/D/openwrt/bin/targets/mvebu/cortexa9/openwrt-snapshot-r18468+9-4a2cca7824-mvebu-cortexa9-linksys_wrt3200acm-squashfs-sysupgrade.bin root@192.168.1.1:/tmp/
3 Likes

Take a look at the Fedora SSH docs...

https://docs.fedoraproject.org/en-US/fedora/rawhide/system-administrators-guide/infrastructure-services/OpenSSH/

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.