Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-SshPath returning empty path for id_rsa #268

Closed
motowilliams opened this issue Mar 14, 2016 · 0 comments
Closed

Get-SshPath returning empty path for id_rsa #268

motowilliams opened this issue Mar 14, 2016 · 0 comments

Comments

@motowilliams
Copy link
Contributor

Get-SshPath

join-path doesn't seem to like concatenating the paths for $home & '.ssh\$File' as it errors on the wrapped Resolve-Path with can't find the path ...\.ssh\$File. Dropping down to .NET fixes this Resolve-Path ([io.path]::combine($home, '.ssh', $File))

Powershell Version

> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      0      10586  63

Windows Version

> [environment]::OSVersion.Version

Major  Minor  Build  Revision
-----  -----  -----  --------
10     0      10586  0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant