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

SSH port connection refused #286

Closed
jlsupremo1 opened this issue Jun 13, 2022 · 6 comments
Closed

SSH port connection refused #286

jlsupremo1 opened this issue Jun 13, 2022 · 6 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jlsupremo1
Copy link

casaos-ssh-port

When the SSH port is not default 22, it is not possible to connect to the terminal, there needs to be an option to change the server's ssh connection port when it is not default 22.

@Protektor-Desura
Copy link

I had that exact error because in hosts.allow and hosts.deny I did not have 127.0.0.1 (localhost) set to be allowed for SSH. Check your rules to make sure it is allowed because the WEB interface doesn't use the remote client's IP but the webserver itself to do SSH.

@llwaini llwaini assigned llwaini and LinkLeong and unassigned llwaini Jun 13, 2022
@llwaini llwaini assigned tigerinus and unassigned LinkLeong Jun 14, 2022
@tigerinus tigerinus added the question Further information is requested label Jun 14, 2022
@tigerinus
Copy link
Contributor

@jlsupremo1 can you check if you have a firewall setup simillar to what @Protektor-Desura described?

BTW - in the coming release we will be adding ability to enable SSH verbose logging, that way we will be able to obtain more details for investigation.

@jlsupremo1
Copy link
Author

@jlsupremo1 can you check if you have a firewall setup simillar to what @Protektor-Desura described?

BTW - in the coming release we will be adding ability to enable SSH verbose logging, that way we will be able to obtain more details for investigation.

Good morning, I don't have a firewall installed, what I notice is that the error appears in the port (22) 127.0.0.1:22, but my server uses ssh port 33591, so I believe it should be in the system settings in the same way as it exists changing the port to WebUI Port:(80) to change the SSH port used as well.

@jerrykuku
Copy link
Contributor

jerrykuku commented Jun 14, 2022

@jlsupremo1 Hi, we noticed this issue, CasaOS web SSH can currently only log in using port 22. In a future release, we will add web SSH login with username, password/key, SSH port, and SSH verbose logging parameters.

@jerrykuku jerrykuku added this to the vNext milestone Jun 14, 2022
@jerrykuku jerrykuku added enhancement New feature or request and removed question Further information is requested labels Jun 14, 2022
@llwaini llwaini modified the milestones: vNext, v0.3.4 Jun 28, 2022
@AmadeusGraves
Copy link

Hi! I was in trouble because of this but i solve on ubuntu 22.04 LTS. Take care about this distro because by default ssh is not installed, so you have to do it. Here's a link to install it and modify ssh port to 22. This may help you before of the 0.3.4 release.

https://www.internetlan.us/2013/02/instalar-y-configurar-ssh-en-ubuntu/

@LinkLeong
Copy link
Collaborator

Thanks for your feedback, this issue has been updated in 0.3.4, please reopen the issue if you have new problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

7 participants