2 deleted 22 characters in body
source | link

If you don't have access to the root account, but have the password of the user you want to use to run a command, you can do the following.

  • This will ask you the toto's password : su - toto -c whoami
  • This will not : ssh toto@localhost whoami

Just install your public key in authorized_keys of toto
Hope this can help ...

If you don't have access to the root account, but have the password of the user you want to use to run a command, you can do the following.

  • This will ask you the toto's password : su - toto -c whoami
  • This will not : ssh toto@localhost whoami

Just install your public key in authorized_keys of toto
Hope this can help ...

If you don't have access to the root account, but have the password of the user you want to use to run a command, you can do the following.

  • This will ask you the toto's password : su - toto -c whoami
  • This will not : ssh toto@localhost whoami

Just install your public key in authorized_keys of toto

1
source | link

If you don't have access to the root account, but have the password of the user you want to use to run a command, you can do the following.

  • This will ask you the toto's password : su - toto -c whoami
  • This will not : ssh toto@localhost whoami

Just install your public key in authorized_keys of toto
Hope this can help ...