#1 2018-01-27 14:15:17

conta
Trusted Member
From: Earth
Registered: 2013-10-13
Posts: 147
Website

reinstalling os

Hi,
I'm on MiniVPS128 - Phoenix USA.
What is it's architecture? I wanna reinstall OS and I see both 32 and 64 as options.

Will stuff like port forwarding and NAT ipv4 work as with default os?

Or better: is there something I need to be aware of when choosing different os?

Thanks!


http://getLES.tk newbie guide for LowEndSpirit VPS
https://DiscoverBSD.com blogging about BSD operating systems
https://BSDSec.net deadsimple BSD Security Advisories and Announcements

Offline

#2 2018-01-27 19:10:41

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

Re: reinstalling os

Port forward and NAT works exactly the same.   
Pick whatever you like.

Offline

#3 2018-01-27 20:13:50

conta
Trusted Member
From: Earth
Registered: 2013-10-13
Posts: 147
Website

Re: reinstalling os

so 32 vs 64 makes no difference?

thanks


http://getLES.tk newbie guide for LowEndSpirit VPS
https://DiscoverBSD.com blogging about BSD operating systems
https://BSDSec.net deadsimple BSD Security Advisories and Announcements

Offline

#4 2018-01-27 20:36:53

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

Re: reinstalling os

on openvz very little, in theory 32bit should run leaner, but the overhead given that the host kernel is 64bit probably negates that.


http://LittleHappyCloud.net KVM VPS with 1TB Bandwidth for €3.00

Offline

#5 2018-01-27 20:49:18

conta
Trusted Member
From: Earth
Registered: 2013-10-13
Posts: 147
Website

Re: reinstalling os

many thanks ;] i'll go with 64


http://getLES.tk newbie guide for LowEndSpirit VPS
https://DiscoverBSD.com blogging about BSD operating systems
https://BSDSec.net deadsimple BSD Security Advisories and Announcements

Offline

#6 2018-01-28 14:21:17

conta
Trusted Member
From: Earth
Registered: 2013-10-13
Posts: 147
Website

Re: reinstalling os

I'm getting `ssh: connect to host xxx port xxx: Connection refused`after reinstall. Is there something else I need to do?


http://getLES.tk newbie guide for LowEndSpirit VPS
https://DiscoverBSD.com blogging about BSD operating systems
https://BSDSec.net deadsimple BSD Security Advisories and Announcements

Offline

#7 2018-01-28 16:40:28

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

Re: reinstalling os

Check that your iptables doesn’t block your assigned ssh port.

Offline

#8 2018-01-28 18:03:47

conta
Trusted Member
From: Earth
Registered: 2013-10-13
Posts: 147
Website

Re: reinstalling os

[email protected]:/# iptables -L                                                                                 
Chain INPUT (policy ACCEPT)                                                                                 
target     prot opt source               destination                                                         
                                                                                                             
Chain FORWARD (policy ACCEPT)                                                                               
target     prot opt source               destination                                                         
                                                                                                             
Chain OUTPUT (policy ACCEPT)                                                                                 
target     prot opt source               destination


http://getLES.tk newbie guide for LowEndSpirit VPS
https://DiscoverBSD.com blogging about BSD operating systems
https://BSDSec.net deadsimple BSD Security Advisories and Announcements

Offline

#9 2018-01-28 18:46:34

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

Re: reinstalling os

Keep in mind it will revert to port 22 and the auto redrection will be active now, so if your ip is for example: 192.168.0.27 then your ssh port would be 2721 or it your ip ends in .185 your ssh port would be 18521

You have been a customer for a long time so you may be expecting it to still be on your old port.

good to see you back here either way, where in the world are you now?


http://LittleHappyCloud.net KVM VPS with 1TB Bandwidth for €3.00

Offline

#10 2018-01-28 19:21:30

conta
Trusted Member
From: Earth
Registered: 2013-10-13
Posts: 147
Website

Re: reinstalling os

So here is what I did:

I bought new VPS so I can update the getles.tk guide and I managed to connect successfully, to port xx21. After that, I reinstalled but I can't connect anymore. I've tried Reconfigure Networking from SolusVM, but that didn't help either.

And I am in Prague, Czech Republic right now ;]


http://getLES.tk newbie guide for LowEndSpirit VPS
https://DiscoverBSD.com blogging about BSD operating systems
https://BSDSec.net deadsimple BSD Security Advisories and Announcements

Offline

#11 2018-01-28 19:34:42

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

Re: reinstalling os

right, seems I am a fool, the debian 9 template, I stripped it so far back it did not even have openssh-server installed by default.. oops

I did the install for you, you should be good to go now.


http://LittleHappyCloud.net KVM VPS with 1TB Bandwidth for €3.00

Offline

#12 2018-01-29 07:18:14

WSS
Trusted Member
Registered: 2016-12-22
Posts: 354

Re: reinstalling os

Backtogeek wrote:

right, seems I am a fool, the debian 9 template, I stripped it so far back it did not even have openssh-server installed by default.. oops

I did the install for you, you should be good to go now.

To be fair, systemd-ssh should be in any patchlevel soon enough..


RbyeR4Nm.png

Offline

#13 2018-01-29 07:42:52

conta
Trusted Member
From: Earth
Registered: 2013-10-13
Posts: 147
Website

Re: reinstalling os

Backtogeek wrote:

right, seems I am a fool, the debian 9 template, I stripped it so far back it did not even have openssh-server installed by default.. oops

I did the install for you, you should be good to go now.

Thad did the trick, thanks ;]

One more thing, thought: was the password changed to some default/another? The one I chose during checkout is not working for me. I know I can change password from SolusVM (I haven't tried yet), but I'd like to know ;]


http://getLES.tk newbie guide for LowEndSpirit VPS
https://DiscoverBSD.com blogging about BSD operating systems
https://BSDSec.net deadsimple BSD Security Advisories and Announcements

Offline

#14 2018-01-29 11:00:25

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

Re: reinstalling os

I did not touch it.


http://LittleHappyCloud.net KVM VPS with 1TB Bandwidth for €3.00

Offline

#15 2018-01-29 12:10:46

conta
Trusted Member
From: Earth
Registered: 2013-10-13
Posts: 147
Website

Re: reinstalling os

Is there something else I could be doing wrong? I've changed the password, but still I'm getting: Permission denied, please try again.


http://getLES.tk newbie guide for LowEndSpirit VPS
https://DiscoverBSD.com blogging about BSD operating systems
https://BSDSec.net deadsimple BSD Security Advisories and Announcements

Offline

#16 2018-01-29 12:12:34

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

Re: reinstalling os

Your sshd probably not taking password or root based logins, you can fix this via the console.


http://LittleHappyCloud.net KVM VPS with 1TB Bandwidth for €3.00

Offline

#17 2018-01-29 12:23:19

conta
Trusted Member
From: Earth
Registered: 2013-10-13
Posts: 147
Website

Re: reinstalling os

I've checked that and PermitRootPassword was commented out. I changed it to yes, restarted ssh, but still no success ;/

#	$OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy Exp $

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options override the
# default value.

#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key

# Ciphers and keying
#RekeyLimit default none

# Logging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

#PubkeyAuthentication yes

# Expect .ssh/authorized_keys2 to be disregarded by default in future.
#AuthorizedKeysFile	.ssh/authorized_keys .ssh/authorized_keys2

#AuthorizedPrincipalsFile none

#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes

#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
PrintMotd no
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation sandbox
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none

# no default banner path
#Banner none

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

# override default of no subsystems
Subsystem	sftp	/usr/lib/openssh/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#	X11Forwarding no
#	AllowTcpForwarding no
#	PermitTTY no
#	ForceCommand cvs server

http://getLES.tk newbie guide for LowEndSpirit VPS
https://DiscoverBSD.com blogging about BSD operating systems
https://BSDSec.net deadsimple BSD Security Advisories and Announcements

Offline

#18 2018-01-29 14:50:26

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

Re: reinstalling os

logged in via console and used the passwd command and then ssh 127.0.0.1 to test?

if that fails i will pull the template (may do it anyway), debian 9 on openvz is a shitshow.


http://LittleHappyCloud.net KVM VPS with 1TB Bandwidth for €3.00

Offline

#19 2018-01-29 16:28:34

conta
Trusted Member
From: Earth
Registered: 2013-10-13
Posts: 147
Website

Re: reinstalling os

That works, I guess I'll try another image.


http://getLES.tk newbie guide for LowEndSpirit VPS
https://DiscoverBSD.com blogging about BSD operating systems
https://BSDSec.net deadsimple BSD Security Advisories and Announcements

Offline

#20 2018-01-29 17:56:10

conta
Trusted Member
From: Earth
Registered: 2013-10-13
Posts: 147
Website

Re: reinstalling os

So I'm giving up. I've tried 2 more debians and still nothing. I'm really lost here.


http://getLES.tk newbie guide for LowEndSpirit VPS
https://DiscoverBSD.com blogging about BSD operating systems
https://BSDSec.net deadsimple BSD Security Advisories and Announcements

Offline

#21 2018-01-29 17:59:20

WSS
Trusted Member
Registered: 2016-12-22
Posts: 354

Re: reinstalling os

Did you enable sshd service?


RbyeR4Nm.png

Offline

#22 2018-01-29 18:24:43

conta
Trusted Member
From: Earth
Registered: 2013-10-13
Posts: 147
Website

Re: reinstalling os

[email protected]:/# service ssh status                                                                           
sshd is running.


http://getLES.tk newbie guide for LowEndSpirit VPS
https://DiscoverBSD.com blogging about BSD operating systems
https://BSDSec.net deadsimple BSD Security Advisories and Announcements

Offline

#23 2018-01-29 18:42:37

manjana
Trusted Member
Registered: 2015-11-23
Posts: 144

Re: reinstalling os

Does 'netstat -nlp' show sshd listening on port 22?

And do you connect to the ip address that 'curl ifconfig.co' shows?

Offline

#24 2018-01-29 18:49:43

conta
Trusted Member
From: Earth
Registered: 2013-10-13
Posts: 147
Website

Re: reinstalling os

[email protected]:/# netstat -nlp                                                                                 
Active Internet connections (only servers)                                                                   
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name             
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1347/sshd                   
tcp6       0      0 :::22                   :::*                    LISTEN      1347/sshd                   
Active UNIX domain sockets (only servers)                                                                   
Proto RefCnt Flags       Type       State         I-Node   PID/Program name    Path

the other one shows ipv6 address.

I'm connecting to the same IP that SolusVM shows in my temporary serial console. Only with root account and different port based on my IP.


http://getLES.tk newbie guide for LowEndSpirit VPS
https://DiscoverBSD.com blogging about BSD operating systems
https://BSDSec.net deadsimple BSD Security Advisories and Announcements

Offline

#25 2018-01-29 18:59:52

manjana
Trusted Member
Registered: 2015-11-23
Posts: 144

Re: reinstalling os

conta wrote:

[email protected]:/# netstat -nlp                                                                                 
Active Internet connections (only servers)                                                                   
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name             
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1347/sshd                   
tcp6       0      0 :::22                   :::*                    LISTEN      1347/sshd                   
Active UNIX domain sockets (only servers)                                                                   
Proto RefCnt Flags       Type       State         I-Node   PID/Program name    Path

the other one shows ipv6 address.

I'm connecting to the same IP that SolusVM shows in my temporary serial console. Only with root account and different port based on my IP.

Oh, looks like ifconfig.co supports IPv6 again. Try 'curl -4 ifconfig.co'. I'm quite sure that the serial console IP is not the same as your external IP.

Offline

Board footer