Answer the question
In order to leave comments, you need to log in
Is it possible to add ssh key via ftp?
I go to the site using an existing key.
Only here is the problem, I can log in via sftp, but it won’t let me into the console. Asks for a password.
Decided to add my key.
When entering the server, there are 2 folders
.ssh_keys
-authorized_keys
-config
-known_hosts
.ssh
here are
RSA PRIVATE KEY
and I also have RSA PRIVATE KEY on my PC (I connect via filezilla)
, it
turns out I specify this key, and without problems I connect via sftp to server.
The question is, how do I add my key? generated
rsa key
private
public
can I manually add my key via sftp, or is it necessary through the console?
in authorized_keys , the keys are = ssh-rsa
in config
Host servername
HostName 88.88.148.148
Port 16
User root
IdentityFile ~/.ssh_keys/root_key
(there are several such keys)
known_hosts - and here I didn’t understand what it was.
In general, how do I add a new key via sftp and delete the old one.
Answer the question
In order to leave comments, you need to log in
How lucky - there are permissions on the file - you can add
no permissions on the file - you can not add the
file ~/.ssh/authorized_keys
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question