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

debian - Kali Linux - Debootstrap error Failed to determine codename for the release - Super User

crash - Windows Rundll32 (child process of DllHost) is crashing. How can I even identify it? - Super User

Windows XP installation, no previous version of Windows NT - Super User