Skip to content

Commit

Permalink
Fix issue where username prompt always happens
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremySkinner committed Aug 2, 2018
1 parent 67f5614 commit 6e69c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenSsh.ps1
Expand Up @@ -152,7 +152,7 @@ function Connect-Ssh {
$hostname = $selected["Host"]

# Only prompt for username if there's no user name explicitly defined.
if (!$config['User']) {
if (!$selected['User']) {
do {
$username = Read-Host "Enter username"
} while (!$username)
Expand Down

0 comments on commit 6e69c75

Please sign in to comment.