#1 2013-07-02 09:27:49

Jun
Trusted Member
Registered: 2013-07-02
Posts: 37

SSH problem

Hi!I want to use SSH from IPV4 address:port.What should i do?
My IP is 192.168.0.23

Last edited by Jun (2013-07-02 09:35:59)

Offline

#2 2013-07-02 11:25:55

Jun
Trusted Member
Registered: 2013-07-02
Posts: 37

Re: SSH problem

Ray wrote:

Hi Jun,

First you have to change the port where sshd listens on in /etc/ssh/sshd_config from
22 to any port from 2301 to 2320 which are the 20 proxied ports you get.

This can be done from the serial console in the solusvm control panel or by ssh´ing to
the vps from a ipv6 enabled host on one of the ipv6 adresses in your welcome e-mail
Sshd is standard running on port 22 only on ipv6 and on the internal ip 192.168.0.23

So when you are logged on as root edit sshd_config and restart ssh then test from a
ipv4 host to see if you can get in. ssh -p 23XX [email protected]


Hi.i try to this.but still don't connect.
Port 2313
#Port
ListenAddress 0.0.0.0
ListenAddress ::

HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
Protocol 2
Subsystem sftp /usr/lib/openssh/sftp-server

ChallengeResponseAuthentication no
PermitRootLogin yes
UsePAM yes
UsePrivilegeSeparation yes

Offline

#3 2013-07-02 11:46:57

Jun
Trusted Member
Registered: 2013-07-02
Posts: 37

Re: SSH problem

Ray wrote:

Not sure but I think that the reverse proxy is active straight away after creation of your vps
so it should work out of the box. To which public ip address on port 2313 are you trying to ssh?

Yes.But...
Mac-Pro:~ JunJiang$ ssh [email protected]:2313
ssh: Could not resolve hostname 1.2.3.4:2313: nodename nor servname provided, or not known

Offline

#4 2013-07-02 12:39:21

Jun
Trusted Member
Registered: 2013-07-02
Posts: 37

Re: SSH problem

ssh: connect to host 0.0.0.0 port 2313: Connection refused

Offline

#5 2013-07-02 12:40:21

Jun
Trusted Member
Registered: 2013-07-02
Posts: 37

Re: SSH problem

Ray wrote:

ssh -p 2313 [email protected]  smile


ssh: connect to host 0.0.0.0 port 2313: Connection refused

Offline

#6 2013-07-02 12:51:37

AnthonySmith
Low End Boss
From: ~/
Registered: 2013-02-13
Posts: 3,943
Website

Re: SSH problem

did your restart the ssh service after changing the config file?

Also please note that the port forwarding is done on a different IP, if in NL the IP ends .24 if UK the IP ends 108


https://upto32.com retro gaming and nostalgia forum that does not take itself to seriously smile

Offline

#7 2013-07-02 12:53:50

Jun
Trusted Member
Registered: 2013-07-02
Posts: 37

Re: SSH problem

Backtogeek wrote:

did your restart the ssh service after changing the config file?

Also please note that the port forwarding is done on a different IP, if in NL the IP ends .24 if UK the IP ends 108

The NL node ip is *.*.**.25 and my ip  is*-*******
i reboot vps,but still don't connect.

Last edited by Jun (2013-07-02 13:02:31)

Offline

#8 2013-07-02 12:57:04

AnthonySmith
Low End Boss
From: ~/
Registered: 2013-02-13
Posts: 3,943
Website

Re: SSH problem

Yes change the IP to end in .24


https://upto32.com retro gaming and nostalgia forum that does not take itself to seriously smile

Offline

#9 2013-07-02 12:58:29

Jun
Trusted Member
Registered: 2013-07-02
Posts: 37

Re: SSH problem

Backtogeek wrote:

Yes change the IP to end in .24

you means ***.***.***.24:port to connect?

Offline

#10 2013-07-02 12:59:49

AnthonySmith
Low End Boss
From: ~/
Registered: 2013-02-13
Posts: 3,943
Website

Re: SSH problem

Yes.


https://upto32.com retro gaming and nostalgia forum that does not take itself to seriously smile

Offline

#11 2013-07-02 13:02:12

Jun
Trusted Member
Registered: 2013-07-02
Posts: 37

Re: SSH problem

Backtogeek wrote:

Yes.

OK.I try to this,it's successful!

Thanks.

And if i want to use pptpvpn,how can i do?

Offline

#12 2013-07-02 14:24:35

mikho
Low End Mod
From: Hell and gore == Sweden
Registered: 2013-03-02
Posts: 1,747
Website

Re: SSH problem

Pptp vpn can not be used since windows cant change its connecting ports to the port-range you are assigned.
Unless you connect via ipv6. Then it's ok.

Ipv4 is a no go.

Offline

#13 2013-07-02 14:25:56

Jun
Trusted Member
Registered: 2013-07-02
Posts: 37

Re: SSH problem

mikho wrote:

Pptp vpn can not be used since windows cant change its connecting ports to the port-range you are assigned.
Unless you connect via ipv6. Then it's ok.

Ipv4 is a no go.


OK.I'm install openvpn now.

use Nyr's

Offline

Board footer

Powered by FluxBB