DevCEDTeam / CED

0 stars 0 forks source link

WinSCP #128

Open DevCEDTeam opened 1 year ago

DevCEDTeam commented 1 year ago

The error message in the authentication log indicates that the SSH client is trying to use a public key file for authentication, but the file is not a certificate. The key type ssh-rsa is a traditional SSH public key type, while certificates are a more modern and secure way to authenticate with SSH.

There are a few possible reasons why the client might be trying to use a public key file instead of a certificate:

If you are using a modern SSH client and the server is configured to accept SSH certificates, then it is recommended that you switch to certificate authentication. This is more secure and easier to manage.

To switch to certificate authentication, you will need to generate an SSH certificate and install it on the server. You can do this using the following commands:

ssh-keygen -t ed25519 -C "your_email@example.com" -f id_rsa_cert
ssh-copy-id -i id_rsa_cert.pub root@server_ip

Once you have installed the certificate on the server, you can connect to it using the following command:

ssh -i id_rsa_cert.pub root@server_ip

If you are unable to switch to certificate authentication, then you can work around the error message by explicitly configuring the client to use the public key file:

ssh -i "C:\Users\direc\.ssh\sub2\public-key-mautic-rsa-key-01102023-2-key.pub" root@server_ip

However, it is important to note that this is less secure than using certificate authentication.

Which method you choose will depend on your specific environment and requirements. If you are unsure, please consult with your system administrator.

https://g.co/bard/share/06c2e0496e69