Skip to content

Commit 467178b

Browse files
authored
Merge pull request #2131 from FabianKramm/print-feat
fix: stable ssh port
2 parents e790a01 + 5481b0f commit 467178b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • pkg/devspace/services/ssh

pkg/devspace/services/ssh/ssh.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ func startSSH(ctx devspacecontext.Context, name, arch string, sshConfig *latest.
7373
// get port
7474
port := sshConfig.LocalPort
7575
if port == 0 {
76-
sshConfigPath := filepath.Join(homeDir, ".ssh", "config")
77-
hosts, err := ParseDevSpaceHosts(sshConfigPath)
76+
sshDevSpaceConfigPath := filepath.Join(homeDir, ".ssh", "devspace_config")
77+
hosts, err := ParseDevSpaceHosts(sshDevSpaceConfigPath)
7878
if err != nil {
79-
ctx.Log().Debugf("error parsing %s: %v", sshConfigPath, err)
79+
ctx.Log().Debugf("error parsing %s: %v", sshDevSpaceConfigPath, err)
8080
} else {
8181
for _, h := range hosts {
8282
if h.Host == sshHost {

0 commit comments

Comments
 (0)