Got it

Transfer file between remote PC and HG8245Q2

Created: Jun 9, 2021 19:03:45Latest reply: Aug 10, 2021 00:49:16 642 9 0 0 0
  HiCoins as reward: 0 (problem unresolved)

How do I transfer a file from a remote computer or FTP server to the HG8245Q2 device?

I am able to access the device by doing the following:


  1. Connect to the device via ssh:

# ssh root@192.168.100.1

  1. WAP > su

success!

  1. SU_WAP > shell

   

    BusyBox v1.26 () built-in shell (ash)

    Enter ‘help’ for a list of built-in commands.


    profile close core dumps

    WAP(Dopra Linux) #


So far, I’ve tried:


  1. WAP(Dopra Linux) # wget http://192.168.100.74:8000/file.zip

Connecting to 192.168.100.74:8000 (192.168.100.74:8000)

wget: can't connect to remote host (192.168.100.74): Connection timed out


where 192.168.100.74 is a local machine we are able to ping.


Also If we try to fetch something from the web with https something like this happens:


wget: can't execute 'ssl_helper': No such file or directory

wget: error getting response: Connection reset by peer


Notice that we have write access on the folders we’re trying to download.


  1. WAP(Dopra Linux) # scp root@192.168.100.74:~/file.zip .

the destination path(/var/srv_ssmp/usr/bin/dbclient: ) is invalid.

No such file or directory



  1. WAP(Dopra Linux) # ftpget -v -u anonymous 192.168.100.74 test

Connecting to 192.168.100.74 (192.168.100.74:21)

ftpget: cannot connect to remote host: Connection timed out



Also from the local machine to the ONT.


$ scp file.zip root@192.168.100.1:/

root@192.168.100.1's password: 

Connection to 192.168.100.1 closed by remote host.

lost connection

$ scp file.zip root@192.168.100.1:~

root@192.168.100.1's password: 

Connection to 192.168.100.1 closed by remote host.

lost connection

$ scp file.zip root@192.168.100.1:/tmp/

root@192.168.100.1's password: 

Connection to 192.168.100.1 closed by remote host.

lost connection


So we have this situation where ssh works but not scp.


Featured Answers

Recommended answer

Chenxintao
Admin Created Jun 10, 2021 00:41:56

Hi, friend!


HG8245Q2 is an ONT. The ONT does not provide the file storage function. You can use the USB port to transfer files.


Accessing a USB Storage Device Using FTP

You can access a USB storage device through the FTP server.


To access a USB storage device using FTP, connect the USB storage device to your HG8145V5 and set the FTP login parameters.

1.Open a browser on your computer.

2.In the address box, enter ftp://192.168.100.1. Press Enter.

3.In the Login dialog box, enter the login user name and password your set in the  HG8145V5's

Storage Share page (Anonymous users select the anonymous directly). Click Login.

Once you pass the authentication, the directory of and files in the USB storage device will be displayed.


You can refer to the following configuration:


1. Enter the web page. 


1


2. Set FTP server parameters.


2


3. Set the Device access control with LAN or WAN.


3


4. You can now access the USB through LAN or WAN.


4


Thanks!

View more
  • x
  • convention:

All Answers
Hello User. we are reviewing your question and we will answer you shortly. Thanks.
View more
  • x
  • convention:

Hi, friend!


HG8245Q2 is an ONT. The ONT does not provide the file storage function. You can use the USB port to transfer files.


Accessing a USB Storage Device Using FTP

You can access a USB storage device through the FTP server.


To access a USB storage device using FTP, connect the USB storage device to your HG8145V5 and set the FTP login parameters.

1.Open a browser on your computer.

2.In the address box, enter ftp://192.168.100.1. Press Enter.

3.In the Login dialog box, enter the login user name and password your set in the  HG8145V5's

Storage Share page (Anonymous users select the anonymous directly). Click Login.

Once you pass the authentication, the directory of and files in the USB storage device will be displayed.


You can refer to the following configuration:


1. Enter the web page. 


1


2. Set FTP server parameters.


2


3. Set the Device access control with LAN or WAN.


3


4. You can now access the USB through LAN or WAN.


4


Thanks!

View more
  • x
  • convention:

@Chenxintao Thank you for the reply.

I have one more question: does the ont expects a usb configuration? It seems I'm able to set and run the ftp server on the usb, however, its not responsive. See the attached log below.


$ ftp 192.168.100.1
Connected to 192.168.100.1.
220 Welcome to virtual FTP service.
Name (192.168.100.1:pc): root
331 Password please.
Password:
230 User logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT 192.168.100.74:57863 OK
425-Unable to establish data connection.
425 Connection timed out.
ftp> put file.zip
local: file.zip remote: file.zip
200 PORT 192.168.100.74:46907 OK
425-Unable to establish data connection.
425 Connection timed out.
ftp>
View more
  • x
  • convention:

Posted by user_4264339 at 2021-06-10 20:19@Chenxintao Thank you for the reply.I have one more question: does the ont expects a usb configurati ...

Yes, my friend!
If you need to access the USB port of the ONT through FTP, you need to configure the HG8245Q2 to allow the WAN/LAN side to access the ONT through FTP.
According to your log information, the device connected to the USB port must be compatible with the HG8245Q2.
As the USB port function of the ONT, we only ensure that the USB port of the ONT can be accessed through Windows.
Thanks!

View more
  • x
  • convention:

GOOD
View more
  • x
  • convention:

Hello, friend!

The ONT does not provide the file storage function. You can access the ONT through FTP to query related information. If you need to remotely transfer files, the ONT must have a USB plug-in. To remotely access the ONT, you need to configure the access on the ONT. Then, you can remotely access the USB device through FTP to transfer files between the PC and the USB device on the ONT.

Thanks!


View more
  • x
  • convention:

user_4264339
user_4264339 Created Aug 11, 2021 01:00:32 (0) (0)
What do you mean by "The ONT does not provide the file storage function"? I am able to access the file system by entering the shell. All I want to do is to be able to transfer a file to this filesystem using HTTPS (e.g. wget https://domain.com), even if it is erased after reboot.  
Chenxintao
Chenxintao Reply user_4264339  Created Aug 11, 2021 01:16:03 (0) (0)
Hi,
What I'm talking about is that the ONT does not have the file storage function, but only serves as a service device.
As mentioned above, the device does not have the file storage function, so the file system cannot be accessed. If you need to remotely transfer files to the ONT, the ONT needs to be equipped with a separate USB storage device. You can only transfer files to the USB.  
user_4264339
user_4264339 Reply Chenxintao  Created Aug 16, 2021 12:25:53 (0) (0)
The file system CAN be accessed via shell command in the CLI.

I know that the filesystem is volatile and won't keep any additional files after a reboot, if that's what you mean.

Once I'm In the shell I am able to view the filesystem tree, as I would in any other Linux OS and use various CLI programs such as wget, which I do use to download files into the Huawei HG8245Q2 device.
What I want to do is to be able to download using HTTPS, not only HTTP. I'm sure there is a way to enbale HTTPS. 

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.