Error when connecting using SSH

When I try to connect to an ssh server, I keep getting an error, see below. I can connect to it just fine using VS code or the terminal but not py charm. Any suggestions?

 

0
Hi, could you please provide the following?

1. Add the following lines to **Help | Diagnostic Tools | Debug Log Settings...**:

```
#com.intellij.ssh
```

(keep the # character)

2. Reproduce the issue and provide logs from **Help | Collect Logs and Diagnostic Data**.

You can use uploading service at https://uploads.jetbrains.com/ , and provide upload ID in your reply.
1

Sure, here you go: 

Upload id: 2023_07_11_Xg7bcCUaxuESjKwVsEPg35 (file: pycharm-logs-20230711-0820247060251904018376456.zip)

0
Thank you,
From the log, it seems that the connection was indeed refused by the remote host for unknown reason. I don't see any failed authentication or anything like that. 

Could you please check your Linux security log for possible errors there? 

Debian/Ubuntu: `/var/log/auth.log`
RHEL/CentOS: `/var/log/secure`

Please check the system log as well:

Debian/Ubuntu: `/var/log/syslog`
RHEL/CentOS: `/var/log/messages`
0
By the way, there's an interesting error:

> java.io.IOException: An established connection was aborted by the software in your host machine

The connection could also be blocked by an antivirus or a firewall on your host machine. Please try disabling any security software and try again.
1

Issue was due to how port forwading was working with kubernetes containers, which didn't seem to affect vscode but I was able to get around it now.

Consider this issue solved.

0

请先登录再写评论。