[Bug 3136] New: ssh RemoteForward show me "Missing target argument"
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Mon Mar 16 02:14:24 AEDT 2020
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.
More information about the openssh-bugs
mailing list