dahlbyk / posh-sshell

PowerShell helpers for SSH (previously part of posh-git.)
MIT License
142 stars 8 forks source link

Correct way to install posh-sshell #18

Open kumarharsh opened 5 years ago

kumarharsh commented 5 years ago

System Details

Issue Description

I am trying to set up ssh-agent to work with Windows' OpenSSH client but apparently, posh-git doesn't work perfectly with windows' OpenSSH and it keeps asking my for my passphrase everytime. I then came across this project, and it seems like I'll need to install posh-sshell to make posh-git work with OpenSSH-Win32?

When I install this extension, I get this error:

> PowerShellGet\Install-Module posh-git -Scope CurrentUser -AllowPrerelease -Force
> PowerShellGet\Install-Module posh-sshell -Scope CurrentUser -AllowPrerelease -Force
PackageManagement\Install-Package : The following commands are already available on this system:'Add-SshKey,Get-SshAgent,Get-
SshPath,Start-SshAgent,Stop-SshAgent'. This module 'posh-sshell' may override the existing commands.

What is the recommended way to install both modules?

JeremySkinner commented 5 years ago

Hi, if you want both modules installed you'll need to grab the code of posh-git from master, rather than installing a release. These functions were removed from posh-git into posh-sshell after the lastest release of posh-git was made (1.0-beta2), so you will end up with these conflicts if you use the latest release of posh-git.

@dahlbyk is there a chance of getting a 1.0-beta3 of posh-git sometime soon so both modules can be installed from the gallery?