Remix.run Logo
ghighi7878 13 hours ago

I agree that this move is good.

But you should not type sudo passwords on remote machine. Instead setup your machinr to have nopassword for special sdmin account and enable pubkey only authentication.

written-beyond 12 hours ago | parent | next [-]

Yeah but am I going to really open another ssh connection just to run an admin specific command. They also didn't provide an admin user, it setup with all of the extra security configurations. You couldn't even `su`

ghighi7878 4 hours ago | parent [-]

I mean nopasswd option of sudo

Wowfunhappy 5 hours ago | parent | prev | next [-]

Why is it better to have a nopassword admin account when using a machine remotely? The point of SSH is to resist mitm attacks, right? If someone could watch my keystrokes, I think I'd have bigger problems!

wolvoleo 5 hours ago | parent | prev [-]

With sudo you can also give people specific access to commands.

I personally use the pam ssh agent module for this, that way you can use agent forwarding with sudo.

ghighi7878 4 hours ago | parent [-]

I did mean nopasswd option of sudo.