Skip to main content
added 102 characters in body
Source Link
Jvrq
  • 75
  • 1
  • 5

I have tried to configure ssh to use public key authentication

The link

/etc/ssh/sshd_config has got this parameters.

RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys PasswordAuthentication yes 

But I'm still being prompted for password. If I use

PasswordAuthentication no 

I can't login

Any suggestion?


It works but only for root user.

My problem was, I had this parameter 

PermitRootLogin no.

I can login with keys with root user if I use 

PermitRootLogin yes.

In the system there is only a /root/.ssh directory an authorized_keys file in this directory

How can I add this to other users, if there isn't, in this system, a home/$USER/.ssh directory and authorized_keys file for each user?

Is there a way to configure for each user? I will need diferent authorized_keys files for each user.

Is possible to configure for a different hosts, domains or ips? similar to httpd.conf

I have tried to configure ssh to use public key authentication

The link

/etc/ssh/sshd_config has got this parameters.

RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys PasswordAuthentication yes 

But I'm still being prompted for password. If I use

PasswordAuthentication no 

I can't login

Any suggestion?


It works but only for root user.

My problem was, I had this parameter PermitRootLogin no.

I can login with keys with root user if I use PermitRootLogin yes.

How can I add this to other users, if there isn't, in this system, a home/$USER/.ssh directory and authorized_keys file for each user?

Is there a way to configure for each user? I will need diferent authorized_keys files for each user.

Is possible to configure for a different hosts, domains or ips? similar to httpd.conf

I have tried to configure ssh to use public key authentication

The link

/etc/ssh/sshd_config has got this parameters.

RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys PasswordAuthentication yes 

But I'm still being prompted for password. If I use

PasswordAuthentication no 

I can't login

Any suggestion?


It works but only for root user.

My problem was, I had this parameter 

PermitRootLogin no.

I can login with keys with root user if I use 

PermitRootLogin yes.

In the system there is only a /root/.ssh directory an authorized_keys file in this directory

How can I add this to other users, if there isn't, in this system, a home/$USER/.ssh directory and authorized_keys file for each user?

Is there a way to configure for each user? I will need diferent authorized_keys files for each user.

Is possible to configure for a different hosts, domains or ips? similar to httpd.conf

added 5 characters in body
Source Link
Jvrq
  • 75
  • 1
  • 5

I have tried to configure ssh to use public key authentication

configure ssh to use public key authenticationThe link

/etc/ssh/sshd_config has got this parameters.

RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys PasswordAuthentication yes 

But I'm still being prompted for password. If I use

PasswordAuthentication no 

I can't login

Any suggestion?


It works but only for root user.

My problem was, I had this parameter PermitRootLogin no.

I can login with keys with root user if I use PermitRootLogin yes.

How can I add this to other users, if there isn't, in this system, a home/$USER/.ssh directory and authorized_keys file for each user?

Is there a way to configure for each user? I will need diferent authorized_keys files for each user.

Is possible to configuredconfigure for a different hosthosts, domaindomains or ipips? similar to httpd.conf

I have tried to configure ssh to use public key authentication

/etc/ssh/sshd_config has got this parameters.

RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys PasswordAuthentication yes 

But I'm still being prompted for password. If I use

PasswordAuthentication no 

I can't login

Any suggestion?


It works but only for root user.

My problem was, I had this parameter PermitRootLogin no.

I can login with keys with root user if I use PermitRootLogin yes.

How can I add this to other users, if there isn't, in this system, a home/$USER/.ssh for each user?

Is there a way to configure for each user? I will need diferent authorized_keys files for each user.

Is possible to configured for a different host, domain or ip? similar to httpd.conf

I have tried to configure ssh to use public key authentication

The link

/etc/ssh/sshd_config has got this parameters.

RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys PasswordAuthentication yes 

But I'm still being prompted for password. If I use

PasswordAuthentication no 

I can't login

Any suggestion?


It works but only for root user.

My problem was, I had this parameter PermitRootLogin no.

I can login with keys with root user if I use PermitRootLogin yes.

How can I add this to other users, if there isn't, in this system, a home/$USER/.ssh directory and authorized_keys file for each user?

Is there a way to configure for each user? I will need diferent authorized_keys files for each user.

Is possible to configure for a different hosts, domains or ips? similar to httpd.conf

added 428 characters in body
Source Link
Jvrq
  • 75
  • 1
  • 5

I have tried to configure ssh to use public key authentication

/etc/ssh/sshd_config has got this parameters.

RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys PasswordAuthentication yes 

But I'm still being prompted for password. If I use

PasswordAuthentication no 

I can't login

Any suggestion?


It works but only for root user.

My problem was, I had this parameter PermitRootLogin no.

I can login with keys with root user if I use PermitRootLogin yes.

How can I add this to other users, if there isn't, in this system, a home/$USER/.ssh for each user?

Is there a way to configure for each user? I will need diferent authorized_keys files for each user.

Is possible to configured for a different host, domain or ip? similar to httpd.conf

I have tried to configure ssh to use public key authentication

/etc/ssh/sshd_config has got this parameters.

RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys PasswordAuthentication yes 

But I'm still being prompted for password. If I use

PasswordAuthentication no 

I can't login

Any suggestion?

I have tried to configure ssh to use public key authentication

/etc/ssh/sshd_config has got this parameters.

RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys PasswordAuthentication yes 

But I'm still being prompted for password. If I use

PasswordAuthentication no 

I can't login

Any suggestion?


It works but only for root user.

My problem was, I had this parameter PermitRootLogin no.

I can login with keys with root user if I use PermitRootLogin yes.

How can I add this to other users, if there isn't, in this system, a home/$USER/.ssh for each user?

Is there a way to configure for each user? I will need diferent authorized_keys files for each user.

Is possible to configured for a different host, domain or ip? similar to httpd.conf

Reformat
Source Link
mgorven
  • 31.4k
  • 7
  • 85
  • 126
Loading
Source Link
Jvrq
  • 75
  • 1
  • 5
Loading