<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SSH Tunnel to DB. unknown option -- h in PAM Self-Hosted Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/ssh-tunnel-to-db-unknown-option-h/m-p/1325199#M23668</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The machine where you are running the DB service also runs a SSH server?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like it is failling when opening the SSH session from the PSMP to the target machine.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Sep 2021 18:11:42 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2021-09-20T18:11:42Z</dc:date>
    <item>
      <title>SSH Tunnel to DB. unknown option -- h</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/ssh-tunnel-to-db-unknown-option-h/m-p/1325198#M23667</link>
      <description>&lt;P&gt;I need to access a database, but the port is not available from the office network.&lt;/P&gt;&lt;P&gt;For that I use an ssh tunnel to the host where the DB is running.&lt;/P&gt;&lt;P&gt;However when trying to use CyberArk to establish the tunnel and communicate with the BD the connection fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the following commands to establish the tunnel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ssh -L 3306:127.0.0.1:3306 -t PSMConnect@&amp;lt;proxy address&amp;gt; &amp;lt;Vault user&amp;gt; &amp;lt;target user&amp;gt; &amp;lt;target address&amp;gt; -tunnel &amp;lt;port&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting the following error after password validation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vault password is required in order to continue.&lt;/P&gt;&lt;P&gt;Vault password:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This session is being recorded&lt;/P&gt;&lt;P&gt;unknown option -- h&lt;/P&gt;&lt;P&gt;usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[-b bind_address] [-c cipher_spec] [-D [bind_address:]port]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[-i identity_file] [-J [user@]host[:port]] [-L address]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[-Q query_option] [-R address] [-S ctl_path] [-W host:port]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[-w local_tun[:remote_tun]] destination [command]&lt;/P&gt;&lt;P&gt;Connection to 10.135.114.229 closed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I linked the target's account to a platform where I allowed the tunnel through port 3306&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone had this problem?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 14:24:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/ssh-tunnel-to-db-unknown-option-h/m-p/1325198#M23667</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2021-09-20T14:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Tunnel to DB. unknown option -- h</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/ssh-tunnel-to-db-unknown-option-h/m-p/1325199#M23668</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The machine where you are running the DB service also runs a SSH server?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like it is failling when opening the SSH session from the PSMP to the target machine.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 18:11:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/ssh-tunnel-to-db-unknown-option-h/m-p/1325199#M23668</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2021-09-20T18:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Tunnel to DB. unknown option -- h</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/ssh-tunnel-to-db-unknown-option-h/m-p/1325200#M23669</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes the target machine allows ssh connections.&lt;/P&gt;&lt;P&gt;I use psmp to connect to the target machine over ssh with no problems.&lt;/P&gt;&lt;P&gt;When I try to create the tunnel the way I mentioned above, I get this error.&lt;/P&gt;&lt;P&gt;I checked with a tcpdump if some traffic arrived at the destination machine and not even the connection request arrives there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 09:13:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/ssh-tunnel-to-db-unknown-option-h/m-p/1325200#M23669</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2021-09-23T09:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Tunnel to DB. unknown option -- h</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/ssh-tunnel-to-db-unknown-option-h/m-p/1325201#M23670</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;CODE&gt;ssh -L localPort:127.0.0.1:tunneltargetPort VaultUser@TargetUser#TargetDomain@TargetMachine#TargetPort# tunneltargetPort@proxyaddress&lt;/CODE&gt;&lt;P&gt;TargetDomain is optional.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 12:30:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/ssh-tunnel-to-db-unknown-option-h/m-p/1325201#M23670</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2021-09-23T12:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Tunnel to DB. unknown option -- h</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/ssh-tunnel-to-db-unknown-option-h/m-p/1325202#M23671</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using this syntax.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;CODE&gt;ssh -L localport:127.0.0.1:target port vaultuser@targetaccount@targetaddress tunneltargetport@proxyaddress&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Authentication is then requested as follows:&lt;/P&gt;&lt;CODE&gt;vaultuser@targetaccount@proxyaddress's password:&lt;/CODE&gt;&lt;P&gt;If the authentication was being requested by the proxy I think it should be something like this:&lt;/P&gt;&lt;CODE&gt;vaultuser@targetaccount@targetaddress@proxyaddress's password&lt;/CODE&gt;&lt;P&gt;And invariably the authentication fails when I put my vaultuser password&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When looking at the logs on the target host I find that instead of using proxy authentication with the targetuser, the authentication is rejected on the target server:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;CODE&gt;Failed password for invalid user vaultuser@targetaccount from sourceip port xxxx ssh2&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 16:05:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/ssh-tunnel-to-db-unknown-option-h/m-p/1325202#M23671</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2021-09-23T16:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Tunnel to DB. unknown option -- h</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/ssh-tunnel-to-db-unknown-option-h/m-p/1325203#M23672</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your connection string should look something like this:&lt;/P&gt;&lt;CODE&gt;ssh -L 5000:127.0.0.1:8000 vaultuser@targetuser@1.1.1.1#22#8000@1.2.3.4&lt;/CODE&gt;&lt;P&gt;Where:&lt;/P&gt;&lt;P&gt;1.1.1.1 = TargetMachine&lt;/P&gt;&lt;P&gt;22 = TargetPort (usually 22)&lt;/P&gt;&lt;P&gt;8000 = tunnel target port&lt;/P&gt;&lt;P&gt;1.2.3.4 = PSMP address&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also make sure you have the PSMP-SSH CC linked to your platform have it configured to accept tunnel.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 16:41:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/ssh-tunnel-to-db-unknown-option-h/m-p/1325203#M23672</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2021-09-23T16:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Tunnel to DB. unknown option -- h</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/ssh-tunnel-to-db-unknown-option-h/m-p/1325204#M23673</link>
      <description>&lt;P&gt;For others here are some additional examples with this syntax (Option 1) for SSH Tunneling:&lt;/P&gt;&lt;P&gt;ssh -L localPort:127.0.0.1:tunneltargetPort VaultUser@TargetUser[#TargetDomain]@TargetMachine#TargetPort# tunneltargetPort@proxyaddress&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm going to simplify some of the above and provide examples with:&lt;/P&gt;&lt;P&gt;VaultUser=VU&lt;/P&gt;&lt;P&gt;TargetUser=TU&lt;/P&gt;&lt;P&gt;[TargetDomain]=DM [usage depending on use case]&lt;/P&gt;&lt;P&gt;TargetMachine=1.1.1.1&lt;/P&gt;&lt;P&gt;**TargetPort=22&lt;/P&gt;&lt;P&gt;localPort=5000&lt;/P&gt;&lt;P&gt;tunneltargetPort=8000&lt;/P&gt;&lt;P&gt;PSMPaddress=1.2.3.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;** TargetPort is required to be specified; even if it is the default port 22 - this is the port the target SSHD server is listening on, in order to start the Port Forwarding of the tunneltargetPort&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example for a basic 'local' target account:&lt;/P&gt;&lt;P&gt;# ssh -L 5000:127.0.0.1:8000 vu@tu@1.1.1.1#22#8000@1.2.3.4&lt;/P&gt;&lt;P&gt;Example for a domain target account:&lt;/P&gt;&lt;P&gt;# ssh -L 5000:127.0.0.1:8000 vu@tu#dm@1.1.1.1#22#8000@1.2.3.4&lt;/P&gt;&lt;P&gt;Example for a vault user domain account = vu@xyz.com (** Need to configure additional delimiter, exampled using '%')&lt;/P&gt;&lt;P&gt;# ssh -L 5000:127.0.0.1:8000 vu@xyz.com%tu#dm%1.1.1.1#22#8000@1.2.3.4&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 22:26:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/ssh-tunnel-to-db-unknown-option-h/m-p/1325204#M23673</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2021-10-04T22:26:16Z</dc:date>
    </item>
  </channel>
</rss>

