Got it

Failed to import or export files using SFTP.

70 0 1 0 0

Hi team, here's a new case.


Problem

When the Linux operating system functions as the SFTP server, the file fails to be imported or exported.


Fault Symptom

Failed to import or export files using SFTP.

1. Failed to export the file.

1


2. Failed to import the file.

1


You can log in to the Linux server using WinSCP.

1



Cause

The SFTP server is enabled by default in the Linux operating system. 

However, importing and exporting files fails because the file path information is not entered. 

The user account does not have the read and write permission on the file path to be imported or exported.



Location Method

A message is displayed indicating that the SFTP import and export fails.



Solution

1. For the export operation

1. Export data as the root user.

    The root user has the read and write permissions.

1


2. If a specific user name is used, you need to log in to the system as the specified user and add the path permission.

Failed to export the data without permission.

1


Run the following command again after the permission is added:

1

1


2. For the import operation, add the permission and add the path information.

1


Emergency Measures

If SFTP is unavailable, you can use the /home/permitdir directory of the storage system to import or export data.

For example, export the configuration file to /home/permitdir/.

export configuration_data ip=172.24.245.15 (controller IP address) user=admin password= (system password) db_file=/home/permitdir/conf.dat protocol=SFTP


Attachments

How to Use WinSCP

Use WinSCP to log in to the storage array. 

Use the admin account and password to log in to the storage array.

1


To access the directory using WinSCP, perform the following steps:

1

Comment

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

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.