New answers tagged

3

Is it correct that the ssh server possesses the public key but not the private key, while the ssh client possesses both the public and private keys? Yes, if you talk about authentication keys. There are also host keys, where the possession is opposite -- server has both and client has only the public key. When I on ssh client side initiate a ...


2

Yes, you can require both kerberos and public key authentication with AuthenticationMethods sshd option. man 5 sshd_config: AuthenticationMethods Specifies the authentication methods that must be successfully completed for a user to be granted access. This option must be followed by one or more comma-separated lists of authentication ...


0

Somehow it was related to the id_rsa.pub file. For the root user, it didn't make a problem, but for sudo through root, it apparently does not work. Perhaps it is a particular case with root that blocks this or perhaps it needs another special permission, other than the recommended ones or group configuration. The "solution" was to just remove the public ...


4

Like @Serge pointed out in a comment, this line debug1: Offering RSA public key: /root/.ssh/id_rsa in your ssh -v output tells you that ssh tried to authenticate with the public key in root's home directory (/root) and not your own user directory (/home/yourusername). This leaves you with three options. You can either run ssh with the -i option to ...


-2

I think you need to check sudoer file and add the user through root privileges. The sudoers file located at: /etc/sudoers(depends on linux base), contains the rules that users must follow when using the sudo command. Read out for suoders for you version of Linux/Unix. you will get lot of material on web which definitely help you out https://www.garron....


0

ok! one reason is that user home directory from passwd file is not the directory from which you want to copy the files. Only root can copy from every ware, the other users not! for example if you want to copy from /backup directory, make sure the user you want to authenticate have the home directory set to /backup (owned by it), for scp to find the corect ...



Top 50 recent answers are included