#1 2014-02-02 13:50:23

rajawali
Trusted Member
Registered: 2014-02-02
Posts: 10

How to get file in Debian

Hello

today i get my server
use Debian 6 64 bit
running program openvpn follow this step https://github.com/Nyr/openvpn-install
after finish

=======================================
Stopping virtual private network daemon:.
Starting virtual private network daemon: server.

Looks like your server is behind a NAT!

If your server is NATed (LowEndSpirit), I need to know the external IP
If that's not the case, just ignore this and leave the next field blank
External IP: (snipped: please do not post the node IP's in public)

Finished!

Your client config is available at ~/ovpn-zzzzz2.tar.gz
If you want to add more clients, you simply need to run this script another time!
=======================================

now my problem,
how to i get file ovpn-zzzzz2.tar.gz and use in pc windows?

thank you

Offline

#2 2014-02-02 14:16:24

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

Re: How to get file in Debian

Connect via winscp after updating your /etc/ssh/sshd_config to use one of the ports assigned to you, and pull what ever file you want.


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

Offline

#3 2014-02-02 14:19:24

Ginger1
Trusted Member
Registered: 2013-09-01
Posts: 22

Re: How to get file in Debian

Ok so you really have 3 options.
1) Use winscp.net and SSH into your sever like normal using that program, then you're presented with an "FTP like" interface.

2) Use lighttpd to create a web sever and download it.

3) Run a FTP daemon

I'd recommend using WinSCP as you can also use it like putty.

Last edited by Ginger1 (2014-02-02 14:20:59)

Offline

#4 2014-02-02 14:45:24

rajawali
Trusted Member
Registered: 2014-02-02
Posts: 10

Re: How to get file in Debian

oh man... thank you

but so sad

i fail use winscp
no connection

also fail to use openvpn....
remote x 1194

x this is my ip?

if use winscp
host name.. find where?
x in my email
x in VPS Control Panel for running ssh
192.168.100.198 my ip server

port : i can in /etc/ssh/sshd_config to 222
username : how to find this..ssh : console-CAuMUS ...this
pass : same?

sorry

Offline

#5 2014-02-02 14:53:37

Ginger1
Trusted Member
Registered: 2013-09-01
Posts: 22

Re: How to get file in Debian

Have you been using SolusVM to SSH in?

Offline

#6 2014-02-02 15:06:22

rajawali
Trusted Member
Registered: 2014-02-02
Posts: 10

Re: How to get file in Debian

Ginger1 wrote:

Have you been using SolusVM to SSH in?

hello

use putty and get detail login in SolusVM
tq

Offline

#7 2014-02-02 15:24:28

Ginger1
Trusted Member
Registered: 2013-09-01
Posts: 22

Re: How to get file in Debian

Ok I suggest you run this script on your VPS http://forum.lowendspirit.com/viewtopic.php?id=473
Take note of the external IPv4 Address and the ports.
Now type nano /etc/ssh/sshd_config
And change the port to one of the 20 you are allocated
Now type service ssh restart
Now load up putty, put in the external IPv4 address and the chosen port.
And bam smile

Last edited by Ginger1 (2014-02-02 15:26:05)

Offline

#8 2014-02-02 15:34:25

rajawali
Trusted Member
Registered: 2014-02-02
Posts: 10

Re: How to get file in Debian

Ginger1 wrote:

Ok I suggest you run this script on your VPS http://forum.lowendspirit.com/viewtopic.php?id=473
Take note of the external IPv4 Address and the ports.
Now type nano /etc/ssh/sshd_config
And change the port to one of the 20 you are allocated
Now type service ssh restart
Now load up putty, put in the external IPv4 address and the chosen port.
And bam smile

thank for help
how to running this script
first time use debian OS
type what after login ssh?

Offline

#9 2014-02-02 15:39:26

Ginger1
Trusted Member
Registered: 2013-09-01
Posts: 22

Re: How to get file in Debian

rajawali wrote:
Ginger1 wrote:

Ok I suggest you run this script on your VPS http://forum.lowendspirit.com/viewtopic.php?id=473
Take note of the external IPv4 Address and the ports.
Now type nano /etc/ssh/sshd_config
And change the port to one of the 20 you are allocated
Now type service ssh restart
Now load up putty, put in the external IPv4 address and the chosen port.
And bam smile

thank for help
how to running this script
first time use debian OS
type what after login ssh?

Ok, so once you've logged in type this.

nano script.sh

If it says "command not found" then type the command below, otherwise just skip it.

apt-get install nano

Ok now select all of this code, and copy it.

# LowEndSpirit "What's my IP?"
# 07/10/13
# By CSa

ipv6addr=$(ip addr show dev venet0 | sed -e's/^.*inet6 \([^ ]*\)\/.*$/\1/;t;d')
ipv4intr=$(ifconfig venet0:0 | grep 'inet addr' | cut -d ':' -f 2 | cut -d ' ' -f 1)
nodeaddr=$(wget -qO- ipecho.net/plain)
ports=${ipv4intr#*.*.*.}

echo Your external IPv6 address is:
echo $ipv6addr
echo
echo Your internal IPv4 address is:
echo $ipv4intr
echo
echo Your external IPv4 address is:
echo $nodeaddr
echo
echo Your LowEndSprit is reachable on these ports:
echo [$nodeaddr]:$ports\01 - $ports\20

Now right click in putty, and it should paste in.

Now press Ctrl (Control) and X
It will ask if you want to save it, type y then press enter.

Now type

chmod a+x script.sh

Now type

./script.sh

----------------------------------
Now write or copy down the external IPv4 address and the ports.
Now type

nano /etc/ssh/sshd_config

Find where it says port (should be 1st line), and change it to the first port you saw when you ran the script.
Now press Ctrl + X and press y then enter.

Now type

service ssh restart

Last edited by Ginger1 (2014-02-02 15:43:08)

Offline

#10 2014-02-02 15:59:49

rajawali
Trusted Member
Registered: 2014-02-02
Posts: 10

Re: How to get file in Debian

Your external IPv6 address is:
2602:ffe8:102:213:1234:1234:4bc8:cb5 2602:ffe8:102:213:1234:1234:168:be98 2602:ffe8:102:213:1234:1234:5d60:1306 2602:ffe8:102:213:1234:1234:12f5:6a07 2602:ffe8:102:213:1234:1234:cef0:a586

Your internal IPv4 address is:
192.168.100.198

Your external IPv4 address is:
<no external ip posted on forum>

Your LowEndSprit is reachable on these ports:
[<no external ip posted on forum>]:19801 - 19820

this result
next step
i change port 22 to 19801
[email protected]:~# nano /etc/ssh/sshd_config
[email protected]:~# service ssh restart
Restarting OpenBSD Secure Shell server: sshd.

now time to use WinSCP

File Protocol : SFTP
Host Name : <no external ip posted on forum>
Port Number : 19801

username n pass : ????

need more help ....

Offline

#11 2014-02-02 16:01:08

Ginger1
Trusted Member
Registered: 2013-09-01
Posts: 22

Re: How to get file in Debian

The username and pass should be in the email you got from inception hosting

Offline

#12 2014-02-02 16:07:04

rajawali
Trusted Member
Registered: 2014-02-02
Posts: 10

Re: How to get file in Debian

get error
"Network error: Connection to "<no external ip posted on forum>" refused"

username : root
pass : my pass right

..............

Last edited by mikho (2014-02-02 18:27:00)

Offline

#13 2014-02-02 16:09:45

Ginger1
Trusted Member
Registered: 2013-09-01
Posts: 22

Re: How to get file in Debian

Ok so this is probably happening due to the port.
Just double check by running the script again
Also make sure there are no spaces before or after the IP in WinSCP

Last edited by Ginger1 (2014-02-02 16:15:08)

Offline

#14 2014-02-02 16:17:09

rajawali
Trusted Member
Registered: 2014-02-02
Posts: 10

Re: How to get file in Debian

so sad

i try change to other port
19819

but get same result
fail ....
any idea

Offline

#15 2014-02-02 16:20:00

Ginger1
Trusted Member
Registered: 2013-09-01
Posts: 22

Re: How to get file in Debian

Type reboot in the console.
See if that fixes it

Offline

#16 2014-02-02 16:28:30

rajawali
Trusted Member
Registered: 2014-02-02
Posts: 10

Re: How to get file in Debian

Ginger1 wrote:

Type reboot in the console.
See if that fixes it

same...
can u help me more...
give u email
i send detail my server

tq

Offline

#17 2014-02-02 16:47:55

Ginger1
Trusted Member
Registered: 2013-09-01
Posts: 22

Re: How to get file in Debian

rajawali wrote:
Ginger1 wrote:

Type reboot in the console.
See if that fixes it

same...
can u help me more...
give u email
i send detail my server

tq

Aslong as Anthony is fine with it, send the details using this http://forum.lowendspirit.com/misc.php?email=5589

Offline

#18 2014-02-02 17:00:19

rajawali
Trusted Member
Registered: 2014-02-02
Posts: 10

Re: How to get file in Debian

Ginger1 wrote:
rajawali wrote:

same...
can u help me more...
give u email
i send detail my server

tq

Aslong as Anthony is fine with it, send the details using this http://forum.lowendspirit.com/misc.php?email=5589


Already send
thank you

Offline

#19 2014-02-02 17:31:21

Ginger1
Trusted Member
Registered: 2013-09-01
Posts: 22

Re: How to get file in Debian

Tried to get SSH working on both servers, however nothing seemed to work. I even tried to run lighttpd on specified ports! but nothing!
Exact same configuration as my server, but nothing seemed to work!

Last edited by Ginger1 (2014-02-02 17:33:16)

Offline

#20 2014-02-02 17:38:56

rajawali
Trusted Member
Registered: 2014-02-02
Posts: 10

Re: How to get file in Debian

Ginger1 wrote:

Tried to get SSH working on both servers, however nothing seemed to work. I even tried to run lighttpd on specified ports! but nothing!
Exact same configuration as my server, but nothing seemed to work!

so next step... i just need open ticket right....

Offline

#21 2014-02-02 18:29:20

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

Re: How to get file in Debian

If you ran the openvpn script without knowing the external ip I would reinstall and then run it again knowing the external ip and ports that can be used.

Offline

#22 2014-02-02 19:58:15

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

Re: How to get file in Debian

I have had a look, I can ssh in to your VPS fine, no problem at all.

You did have some extra uneeded lines in the sshd conf which I removed with the wrong external IP as the listen address etc.

If you are having an issue please reinstall, use the correct IP (ends in 139) and try again.

Please stop posting the IP's in public either way smile

Thanks.


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

Offline

#23 2014-04-19 10:49:26

jojo
Trusted Member
Registered: 2014-04-19
Posts: 14

Re: How to get file in Debian

Hi, whether it can be solved?

because I experienced the same problem, I can not take ~/blablabla.tar.gz from server,

I've read several related threads and do what is written above but could not succeed as well,

if anyone can help me, please?

Offline

#24 2014-04-19 11:55:18

dark
Trusted Member
Registered: 2013-04-27
Posts: 80

Re: How to get file in Debian

@jojo: Can you please describe your exact problem?
Are you connecting to your VPS with IPv4 or IPv6?
Are you trying to transfer the file via SSH/SCP?
What error do you get?

Offline

#25 2014-04-19 12:25:45

jojo
Trusted Member
Registered: 2014-04-19
Posts: 14

Re: How to get file in Debian

dark wrote:

@jojo: Can you please describe your exact problem?
Are you connecting to your VPS with IPv4 or IPv6?
Are you trying to transfer the file via SSH/SCP?
What error do you get?

@dark thanks for reply

Well, I want to build vpn using LES vps.
I follow the instructions from here http://forum.lowendspirit.com/viewtopic.php?id=235 and successfully install openvpn.
Yes i can't transfer file(openvpn client config) from vps to my desktop, I've change the port 22 to port assinged for me in /etc/ssh/sshd_config
I use ipv4 to connect to vps n running Debian 6 32 Bit.

Offline

Board footer

Powered by FluxBB