#2 Re: HowTo's, Guides, Reviews. » Setting up a small web server [complete guide with first steps] » 2014-08-28 01:47:49

dimitrisp wrote:

So, you want to use lighttpd on a different port than 80. Maybe you already use the reverse proxy for something else? Well, no worries. We just have to do 2 more small modifications!
............................

Thanks. smile

#3 HowTo's, Guides, Reviews. » Want to change the hostname » 2013-11-02 02:18:31

obakfahad
Replies: 2

I want to change the hostname. I created an A record by that same procedure like old one . But i can't access that FQDN !!!

#4 Re: Pre-Sales Questions » New to Lowend , And totally confused » 2013-10-09 10:19:30

Backtogeek wrote:

paste the first 10 lines of your sshd config please.

Succeeded ... smile

#5 Re: HowTo's, Guides, Reviews. » Find Your IP and Port to Connect SSH » 2013-10-09 10:18:01

CSa wrote:
obakfahad wrote:

My procedure will not work ??

No, it will not.

It is working for me.

#6 Re: HowTo's, Guides, Reviews. » Find Your IP and Port to Connect SSH » 2013-10-09 04:31:37

CSa wrote:

You do not need to go through Anthony to get the IP of the node, in fact, he prefers if you get it yourself.
Also, this is slightly wrong. Your node's IP *should* be 111.222.333.444 no matter what. You do not have your own assigned IPv4 IP.

Use this script to get your IP addresses and available ports: http://forum.lowendspirit.com/viewtopic.php?id=473
Use this script to automatically configure your SSHd: http://forum.lowendspirit.com/viewtopic.php?id=480


My procedure will not work ??

#7 HowTo's, Guides, Reviews. » Find Your IP and Port to Connect SSH » 2013-10-09 04:18:47

obakfahad
Replies: 4

First: Open Ticket from here: https://clients.inceptionhosting.com/su … 2&deptid=4

Write there to ask for a IP to point A record for your hostname. (server.domain.tld)

You will be given an IP . This is lengthy process. But the IP is Perfect for your ssh connection which no need to edit.



You can get Your IP by another way.

1.Login to VPS panel
2.Open a Serial Console Session and click on "View Connection Settings" . You will see login/user/port/ip like below :
1

Note Down That IP.

You need to look upon Your VPS info EMail for main IP.

Main IP   : 555.666.777.888
Noted IP : 111.222.333.444
-------------------------------------

Then Your IP will be : 111.222.333.888 (You can get this IP from Opening ticket too)
And Port : 88801-88820

Above port will be just your acquired IPs last 3,2 or 1 digits addition of 20 . IF your IP ends with 139 then ssh port should be 13901.....13909.....13919....13920
______________________________________________

Now Go to Serial Console(not putty) and login to your VPS and Do below steps for get connected to your vps with ipv4 ssh by putty.


Step:1

nano /etc/ssh/sshd_config

Edit port section change 22 to acquired Port. Save that file and run below codes.

service ssh restart

Now You can connect by Putty by that IP and PORT. smile

#9 Re: HowTo's, Guides, Reviews. » How do I find my assigned ports? » 2013-10-09 03:28:56

404notfound wrote:
Backtogeek wrote:

The welcome email says:

IPv4 NAT IP Information

============================

You have been assigned a range of 20 ports along with your NAT IPv4 address.

The ports are based on the last octet of your IP.

example: 192.168.0.3 has the following port range forwarded: 301 - 320
example: 192.168.0.13 has the following port range forwarded: 1301 - 1320
example: 10.10.10.33 has the following port range forwarded: 3301 - 3320
example: 192.168.0.133 has the following port range forwarded: 13301 - 13320
example: 10.10.10.7 has the following port range forwarded: 701 - 720
example: 192.168.0.17 has the following port range forwarded: 1701 - 1720
example: 10.10.10.221 has the following port range forwarded: 22101 - 22120

So if your IP ends in .195 your ports are 19501 - 19520

Thank you!


AT LASSSSSSSSSSSSSSSSSSSSSTTTTTTTTTTTTTTTTTTTTTTTTT !!!!!!!!!!!!!!!

#11 Re: HowTo's, Guides, Reviews. » "Give me IPv4 SSH!" Script » 2013-10-09 03:13:40

CSa wrote:

Hey everyone,
just thought I'd share a little script that automatically configures your SSHd to run on the first IPv4 available to your LES smile


# LowEndSpirit "Give me IPv4 SSH!"
# 09/10/13
# By CSa

nodeaddr=$(wget -qO- ipecho.net/plain)
ipv4intr=$(ifconfig venet0:0 | grep 'inet addr' | cut -d ':' -f 2 | cut -d ' ' -f 1)
ports=${ipv4intr#*.*.*.}
sshdnew=$ports\01

echo [*] This script will set up your SSHd to use the first IPv4 port you have.
echo [*] Please ensure that you have not configured other programs to use this port.
echo [*] Please ensure that you have not configured SSHd previously.

echo [+] Setting up your SSHd.
sed "1s/22/$sshdnew/g" /etc/ssh/sshd_config > /etc/ssh/sshd_config

echo [*] Done!

echo [#] Your SSHd is now available on [$nodeaddr]:$ports\01
echo [#] - CONNECT TO ABOVE ADDRESS -

echo [!] Keep this window open! 
echo [!] Copy the address above immediately as SSHd will restart as soon as you press ENTER.
sleep 2
read -p "[!] Press ENTER to continue. Please ensure you have noted the above address AND port."

echo [-] Restarting your SSHd. You might be disconnected.
service sshd restart

Have fun. Notify me of any bugs smile

[*] This script will set up your SSHd to use the first IPv4 port you have.
[*] Please ensure that you have not configured other programs to use this port.
[*] Please ensure that you have not configured SSHd previously.
./x.sh: line 13: $'\r': command not found
[+] Setting up your SSHd.
./x.sh: line 16: $'\r': command not found
[*] Done!
./x.sh: line 18: $'\r': command not found
01139our SSHd is now available on [95.141.35.235
[#] - CONNECT TO ABOVE ADDRESS -
./x.sh: line 21: $'\r': command not found
[!] Keep this window open!
[!] Copy the address above immediately as SSHd will restart as soon as you press ENTER.
sleep: invalid time interval `2\r'
Try `sleep --help' for more information.
[!] Press ENTER to continue. Please ensure you have noted the above address AND port.

#12 Re: Pre-Sales Questions » New to Lowend , And totally confused » 2013-10-09 02:36:14

I trace Routed Google and get this IP from first line: <snipped: DO NOT POST THE IP OF THE NODE IN PUBLIC>.235

So what will be my IP ? I am in ITALY i think.

#13 Re: HowTo's, Guides, Reviews. » First steps to do when you get your VPS » 2013-10-09 00:28:17

I can connect VPS with ssh by ipv6 addresses but i want to connect by ipv4 ... sad .... How to know the perfect IP ?



I trace Routed Google and get this IP from first line: <snipped: stop posting the IP in public>

So what will be my IP ? I am in ITALY i think.

#14 Re: Pre-Sales Questions » New to Lowend , And totally confused » 2013-10-09 00:26:30

mikho wrote:

Ok, so you have logged into SolusVM and opened a console connection to your vps?

Here is a copy of a post in the other thread

However the serial console can be accessed via solusvm (links in that email), if you cant work out how to log in to solusvm knowledge-base guides are present for that.
So lets assume you at lease find the serial console button in solusvm, you connect, show credentials for username and password, and do the following:
nano /etc/ssh/sshd_conf
edit port 22 to one of the ports allocated to you (again details on ports are in the email and also in the knowledge-base)
service ssh restart
Connect over putty once you have the IP (many guides on finding the IP here, quick tip is to look at the IP in the serial console and then replace the last part with .139 for Italy, .24 for NL or .108 for UK)

In your initial email you were assigned 20 ports, use any of those.
Remember to restart sshd after you saved your config file.


I can connect VPS with ssh by ipv6 addresses but i want to connect by ipv4 ... sad

#15 Re: HowTo's, Guides, Reviews. » First steps to do when you get your VPS » 2013-10-08 18:37:04

dark wrote:

@obakfahad: Have a look at CSa's script.
It will show you you the port range you can use - choose any port in that range and restart sshd, then you should be ready :-)

shows error ... sad

#16 Re: HowTo's, Guides, Reviews. » First steps to do when you get your VPS » 2013-10-08 18:14:28

Backtogeek wrote:

Have a GOOD read of the email first.

However the serial console can be accessed via solusvm (links in that email), if you cant work out how to log in to solusvm knowledge-base guides are present for that.

So lets assume you at lease find the serial console button in solusvm, you connect, show credentials for username and password, and do the following:

nano /etc/ssh/sshd_conf
edit port 22 to one of the ports allocated to you (again details on ports are in the email and also in the knowledge-base)
service ssh restart
Connect over putty once you have the IP (many guides on finding the IP here, quick tip is to look at the IP in the serial console and then replace the last part with .139 for Italy, .24 for NL or .108 for UK)


I have IP in the email : 139

what should i use as port ???

#17 Re: Pre-Sales Questions » New to Lowend , And totally confused » 2013-10-08 00:43:10

I have followed the steps , but no reply is there ... sad

#18 Re: HowTo's, Guides, Reviews. » First steps to do when you get your VPS » 2013-10-07 15:41:47

mikho wrote:

1) Connect via the serial console and set your ssh port to one that is assigned to you.
2) Install web server and place content etc on it
3) open ticket asking for the IP
4) Point A record for your domain at the IP given to you in step 3
5) Open ticket asking for reverse proxy entry to be created for you
6) Smile, you are all done smile

I am confused about console connection and port , how to set the port ? where ?

#20 Pre-Sales Questions » New to Lowend , And totally confused » 2013-10-07 15:10:23

obakfahad
Replies: 8

I have got the vps info mail , but i can't connect that , how to do that ???

Board footer

Powered by FluxBB