News for hackers. Stuff that matters.
Re:Keystroke timing obfuscation added to SSH(1) by tsbinz on Tuesday August 29, 2023 @12:34PM (#37310360)
That is not the only time you use passwords over ssh, e.g. I don't use a password to remote into my desktop from my laptop, but I do use one when using sudo on the desktop.
Re:Keystroke timing obfuscation added to SSH(1) by vladvasiliu on Tuesday August 29, 2023 @02:21PM (#37311804)
Is there no way to forward fido tokens? Or the GPG agent with a Yubikey.

Under Windows, you can forward your smartcard over remote desktop. It's one of the few things Windows has I miss on Linux.

Re:Keystroke timing obfuscation added to SSH(1) by 2Gkashmiri on Tuesday August 29, 2023 @02:36PM (#37311997)
i attempt to use this and some programs recognize this and many just don't
Re:Keystroke timing obfuscation added to SSH(1) by vladvasiliu on Tuesday August 29, 2023 @05:32PM (#37314430)
Don't these apps just use PAM? Since the initial complaint was about sudo, I'd figure pam / polkit would handle this, and apps would call those to obtain privilege elevation.
Re:Keystroke timing obfuscation added to SSH(1) by ptman on Wednesday August 30, 2023 @05:23AM (#37319428)
Forwarding the ssh agent (-A) is considered insecure. Instead man ssh recommends using a jump host (-J)
Re:Keystroke timing obfuscation added to SSH(1) by vladvasiliu on Wednesday August 30, 2023 @07:20AM (#37320334)
I was talking about the GPG agent, so that the key on the smart card can be used to for sudo elevation on the remote host. This usually requires user interaction with the key, so just having access to the agent wouldn't do much. I don't think the ssh agent would help with this.

To your point, I wonder whether that consideration holds when the private key is held on an external device, like is the case with a YubiKey. I use that setup, and I can't add the key to the ssh agent.

    $ ssh-add .ssh/id_yubikey_gpg.pub                                                                                                                                                                                                                                                                                                                     
    Error loading key ".ssh/id_yubikey_gpg.pub": error in libcrypto
SSH connections work fine with that key.
Re:Keystroke timing obfuscation added to SSH(1) by ehutch79 on Tuesday August 29, 2023 @02:26PM (#37311853)
That's not what the parent is talking about.

They're specifically refering to password authentication to make the ssh connection.

Re:Keystroke timing obfuscation added to SSH(1) by rollcat on Tuesday August 29, 2023 @05:18PM (#37314264)
Actually this is something that is relevant to my interests.

I prefer to have sudo ask for a password when I'm physically in front of the machine, but not if it's a remote session (e.g. SSH from my laptop to my desktop).

Maybe the SSH agent on the client can re-authenticate to the server when requested?

Re:Keystroke timing obfuscation added to SSH(1) by patrakov on Tuesday August 29, 2023 @05:29PM (#37314399)
> Maybe the SSH agent on the client can re-authenticate to the server when requested?

There is a PAM module that does this: https://github.com/jbeverly/pam_ssh_agent_auth

Note that this is a bad idea from the security standpoint, as it requires SSH agent forwarding. Which means that, if the remote server is compromised, the attacker can use your SSH agent to log into other servers as you.

Re:Keystroke timing obfuscation added to SSH(1) by rollcat on Tuesday August 29, 2023 @06:06PM (#37314765)
The local agent can ask the user to approve/deny signing requests.
Re:Keystroke timing obfuscation added to SSH(1) by riffraff on Wednesday August 30, 2023 @02:27AM (#37318388)
FWIW, you can probably configure sudo to use something other than passwords. On a Mac you can use the fingerprint reader for example, it's just disabled by default.

And your terminal may come with a password manager too, which would be unlocked with whatever means.

Again, on a Mac with iTerm you can do this with a fingerprint.