LuCI > System > Administration > SSH Access

  • Password authentication > Check
  • Allow root login with password > Check

Save & Apply

If you want to SSH to your PC, enable and start OpenSSH server on the PC.

1 Like

i mainly use scp or rsync from terminal, also integration in dolphin kde is pretty smooth when needed in my case.. you should dig around all the info you got from this post and find your "sweet spot" for your workflow..

1 Like

hi again,

I did your command but it works only if I open my terminal as 'root'
if Im not as root, I got that :slight_smile:

/home/james/.ssh/config: line 1: Bad configuration option: ~/.ssh/config
/home/james/.ssh/config: terminating, 1 bad configuration options

I need to do ''sudo'' before.. sudo ssh openwrt

Sounds like the first line of your config file is messed up.

I have that in /.ssh/config


Host openwrt
    Port 3xxxx
    User root
    IdentityFile ~/.ssh/id_localrouter
    PubkeyAcceptedKeyTypes +ssh-rsa
1 Like

Remove the first line.

1 Like

it works now, but is it ok with those warnings?

:~$ ssh openwrt
The authenticity of host '[]:3xxxxx([]:3xxx)' can't be established.
ED25519 key fingerprint is SHA256:gKPTuExxxxxxxxxxxxxxxxxxxxxxxxxxxQ4Y.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[]:3xxxx' (ED25519) to the list of known hosts.
Permissions 0644 for '/home/james/.ssh/id_localrouter' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/home/james/.ssh/id_localrouter": bad permissions
root@'s password: 

1 Like
chmod -R go= ~/.ssh


ssh -i /home/user/Downloads/foo/SSH_key/your_key.key root@

(I wasn't even aware there was PuTTY for Linux, thanks for the info!)

It doesn't seem that hard...unless I misunderstand what you mean by "login automatically". Most terminal screens will allow you to open it into a command, so you can even configure your desktop to load it when opened.

1 Like

to load it from open wrt ?

you mean, like we do ie; in downloads folder and choose ; open in terminal ?

I have no clue what you're asking. You said you had a Linux desktop, so your reply is very confusing.

Nonetheless, that is the command.

yes linux debian,

about that, I m not sure what you explain

You want to use a key to login via SSH from a Debian Linux machine. That is the command on the Linux box (hence, I said configure desktop).

ok yes, you're right, sorry.

about ''.key'', I use ''ed25519 '' it is fine? just addind the complete key at the end of that command..

It depends on the OpenWrt version you are using.