How to copy or delete a file in jump server users home directory?
Using SFTP to copy and delete files in jump server
Overview: This article explains how to use SFTP clients to copy or delete files in a jump server user’s home directory, including detailed steps for connecting to the gateway server and managing files.
Use sftp clients to copy files from the desktop to the gateway and to delete the files as well. The user first needs to sftp to the gateway server as shown below
sftp [email protected]
[email protected]’s password:
Connected to 192.168.56.112.
sftp> ls
ezsh.log
sftp> put ioncube_loaders_lin_x86-64.tar.gz
Uploading ioncube_loaders_lin_x86-64.tar.gz to /home/john/ioncube_loaders_lin_x86-64.tar.gz
ioncube_loaders_lin_x86-64.tar.gz 100% 11MB 18.0MB/s 00:00
sftp> ls
ezsh.log ioncube_loaders_lin_x86-64.tar.gz
sftp> rm ioncube_loaders_lin_x86-64.tar.gz
Removing /home/john/ioncube_loaders_lin_x86-64.tar.gz
Related Articles:
Transfer file from desktop machine to remote server
How to transfer Ezeelogin SSH session logs recorded to a remote server ?