bugzilla-daemon at mindrot.org
2020-Mar-15  15:14 UTC
[Bug 3136] New: ssh RemoteForward show me "Missing target argument"
https://bugzilla.mindrot.org/show_bug.cgi?id=3136
            Bug ID: 3136
           Summary: ssh RemoteForward show me "Missing target
argument"
           Product: Portable OpenSSH
           Version: 8.2p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: pyygames at gmail.com
Created attachment 3368
  --> https://bugzilla.mindrot.org/attachment.cgi?id=3368&action=edit
a sreenshot for my config and log
Env:
CentOS Linux release 7.4.1708 (Core)
OpenSSH_8.2p1, OpenSSL 1.0.2k-fips  26 Jan 2017
Issue reproduce:
step1. create a config file as bellow:
cat /etc/default/st2c2.config
Host centos2
   HostName centos2
   User user
   IdentityFile /home/user/.ssh/id_rsa
   RemoteForward 8888
   PubkeyAuthentication yes
   ServerAliveInterval 10
   ServerAliveCountMax 4
   ExitOnForwardFailure yes
   ConnectTimeout 10
step2. create a customize ssh tunnel as bellow:
cat /etc/systemd/system/st2c2.service
xxxxxx omit unit session xxxxxx
[Service]
ExecStart=/usr/bin/ssh -F /etc/default/st2c2.config -NT centos2
xxxx  omit install session xxxx
step3. systemctl start st2c2.service 
Step4. then it show me a lot of log as bellow:
Mar 15 22:43:45 centos1 systemd[1]: Started Setup a secure tunnel to
Centos2.    Mar 15 22:43:45 centos1 systemd[1]: Starting Setup a secure
tunnel to Centos2... Mar 15 22:43:45 centos1 ssh[4834]:
/etc/default/st2c2.config line 5: Missing target argument.
Step5 if I connect host in bellow way, it works well
      ssh -F /etc/default/st2c2.config centos2 
Any advise ? under command prompt, it works ,but under service ,it
always show my Missing target argument for my remote forward.
-- 
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2020-Mar-16  06:39 UTC
[Bug 3136] ssh RemoteForward show me "Missing target argument"
https://bugzilla.mindrot.org/show_bug.cgi?id=3136
Darren Tucker <dtucker at dtucker.net> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dtucker at dtucker.net
--- Comment #1 from Darren Tucker <dtucker at dtucker.net> ---
When you're testing from the command (In reply to pyygames from comment
#0)> CentOS Linux release 7.4.1708 (Core)
> OpenSSH_8.2p1, OpenSSL 1.0.2k-fips  26 Jan 2017
>From what I can tell CenOS 7.4 has OpenSSH 7.4:
http://vault.centos.org/7.4.1708/updates/x86_64/drpms/
>    RemoteForward 8888
Reverse dynamic forwarding was added in 7.6:
https://www.openssh.com/txt/release-7.6
> xxxxxx omit unit session xxxxxx
> [Service]
> ExecStart=/usr/bin/ssh -F /etc/default/st2c2.config -NT centos2
The service is explicitly running the one in the system path.
> /etc/default/st2c2.config line 5: Missing target argument.
This is the error you'd get if you're using a version prior to when
remote dynamic forwarding was added.
> Step5 if I connect host in bellow way, it works well
>       ssh -F /etc/default/st2c2.config centos2
Are you sure you're using the same ssh binary version?
-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at mindrot.org
2020-Mar-16  07:28 UTC
[Bug 3136] ssh RemoteForward show me "Missing target argument"
https://bugzilla.mindrot.org/show_bug.cgi?id=3136 --- Comment #2 from pyygames at gmail.com --- Hello, Thanks , you are correct. They are different version binary. [root at CentOS-vm ~]# ssh -V OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 [root at CentOS-vm ~]# which ssh /usr/bin/ssh [root at CentOS-vm ~]# ssh -V OpenSSH_8.2p1, OpenSSL 1.0.2k-fips 26 Jan 2017 [root at CentOS-vm ~]# which ssh /usr/local/bin/ssh Thank you again! -- You are receiving this mail because: You are watching someone on the CC list of the bug. You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2020-Mar-16  07:31 UTC
[Bug 3136] ssh RemoteForward show me "Missing target argument"
https://bugzilla.mindrot.org/show_bug.cgi?id=3136
Darren Tucker <dtucker at dtucker.net> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED
--- Comment #3 from Darren Tucker <dtucker at dtucker.net> ---
You're welcome.
-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2021-Apr-23  05:02 UTC
[Bug 3136] ssh RemoteForward show me "Missing target argument"
https://bugzilla.mindrot.org/show_bug.cgi?id=3136
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED
--- Comment #4 from Damien Miller <djm at mindrot.org> ---
closing resolved bugs as of 8.6p1 release
-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.