[Bug 3112] New: ssh -o ControlPath=... -N immediately exits with server authorized_keys command, fine w/o ControlPath

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Tue Jan 14 15:14:14 AEDT 2020


https://bugzilla.mindrot.org/show_bug.cgi?id=3112

            Bug ID: 3112
           Summary: ssh -o ControlPath=... -N immediately exits with
                    server authorized_keys command, fine w/o ControlPath
           Product: Portable OpenSSH
           Version: 8.0p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: cJ-mr at zougloub.eu

Managed to reduce the problem to the following:

1. Prepare ~/.ssh/authorized_keys file *running a command*:

   ssh-keygen -t ed25519 -f id_test

   echo 'command="true",restrict '"$(cat id_test.pub)" >>
.ssh/authorized_keys

2. Run a first connection, multiplex master:

   ssh -i id_test -o ControlMaster=yes -o ControlPath=test -N localhost

3. Run a second connection, multiplex slave:

   ssh -i id_test -o ControlPath=test -N localhost

Observe that at step 3, the command immediately returns.
Expected result is to behave the same way as `ssh -i id_test -N
localhost`.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list