title: How to install scp and ssh to Powershell?
body: <p>I installed Posh-SSH with: Install-Module -Name Posh-SSH</p>
  
  <p>When trying to execute scp or ssh, I am getting something like below. Why?</p>
  
  <pre><code>scp : The term 'scp' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
  spelling of the name, or if a path was included, verify that the path is correct and try again.
  At line:1 char:1
  + scp
  + ~~~
      + CategoryInfo          : ObjectNotFound: (scp:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
  </code></pre>
  
  <p><strong>UPDATE</strong>
  With the help of @tommymaynard, I can see all the available commands:</p>
  
  <pre><code>PS C:\WINDOWS\system32&gt; $x = Find-Module -Name Posh-SSH
  PS C:\WINDOWS\system32&gt; $x.AdditionalMetadata.Functions -split ' '
  Get-PoshSSHModVersion
  Get-SFTPChildItem
  Get-SFTPContent
  Get-SFTPLocation
  Get-SFTPPathAttribute
  Get-SFTPSession
  Get-SSHPortForward
  Get-SSHSession
  Get-SSHTrustedHost
  Invoke-SSHCommand
  Invoke-SSHCommandStream
  Invoke-SSHStreamExpectAction
  Invoke-SSHStreamExpectSecureAction
  Invoke-SSHStreamShellCommand
  Move-SFTPItem
  New-SFTPFileStream
  New-SFTPItem
  New-SFTPSymlink
  New-SSHDynamicPortForward
  New-SSHLocalPortForward
  New-SSHRemotePortForward
  New-SSHShellStream
  New-SSHTrustedHost
  Remove-SFTPItem
  Remove-SFTPSession
  Remove-SSHSession
  Remove-SSHTrustedHost
  Rename-SFTPFile
  Set-SFTPContent
  Set-SFTPLocation
  Set-SFTPPathAttribute
  Start-SSHPortForward
  Stop-SSHPortForward
  Test-SFTPPath
  PS C:\WINDOWS\system32&gt; $x.AdditionalMetadata.Cmdlets -split ' '
  Get-SCPFile
  Get-SCPFolder
  Get-SCPItem
  Get-SFTPFile
  Get-SFTPItem
  New-SFTPSession
  New-SSHSession
  Set-SCPFile
  Set-SCPFolder
  Set-SCPItem
  Set-SFTPFile
  Set-SFTPFolder
  Set-SFTPItem
  </code></pre>
  
  <p>From there, which command would you use to replace the 'scp' and 'ssh' below (ref: <a href="https://code.visualstudio.com/docs/remote/troubleshooting#_configuring-key-based-authentication" rel="nofollow noreferrer">https://code.visualstudio.com/docs/remote/troubleshooting#_configuring-key-based-authentication</a>)?</p>
  
  <pre><code>$REMOTEHOST="your-user-name-on-host@host-fqdn-or-ip-goes-here"
  
  scp "$env:USERPROFILE\.ssh\id_rsa.pub" "${REMOTEHOST}:~/tmp.pub"
  ssh "$REMOTEHOST" "mkdir -p ~/.ssh &amp;&amp; chmod 700 ~/.ssh &amp;&amp; cat ~/tmp.pub &gt;&gt; ~/.ssh/authorized_keys &amp;&amp; chmod 600 ~/.ssh/authorized_keys &amp;&amp; rm -f ~/tmp.pub"
  </code></pre>