login - How to shift user in ubuntu using ssh keypair - Ask Ubuntu


in aws ec2, login ubuntu user ssh keypair:

ssh ubuntu@hostname -i path_to_the_keypair 

now, want shift root user try login root user entering

$ su root 

and asks password how enter ssh password.

is there way change user using ssh keypair?

no. can't authenticate su using keypair. have configured sudo , can "change root user" using sudo -i.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User