i have SSH access to my source server on digitalocean and ftp access on my azure server then need to move large directory of images from source server to remote server, how can i do it with FTP or mput or similar commands ?
i have only FTP access to remote server.
start with your source server, go to the directory where you have all the files. Start a FTP session to your remote server. After login type prompt
then issue mput *.*.
If you want to get files from target server, then you can use mget
is this what you are looking for?
start FTP connection as follow:
FTP
open destination ftp server
enter username &
password
cd destination folder
lcd source folder path
prompt
mput *.*
all the commands must be the above order.
Related
I have created a file, say file.sh on my local unix server whose user is say, USER1. Now when I am copying this file from my local server to a remote unix server the ownership is getting changed to USER2.
I have tried many permutations with rsync and scp, but nothing is working.
How can I avoid this ? I want to preserve the ownership of the file as USER1.
Commands used for example:-
scp -pqr /apps/test/scripts/cronbak.sh USER2#remoteserver:/apps/test/scripts
rsync -avz /apps/test/scripts/cronbak.sh USER2#remoteserver:/apps/test/scripts
Thanks.
If you want to preserve the ownership of the file as USER1, you probably have to login as USER1:
scp -pqr /apps/test/scripts/cronbak.sh USER1#remoteserver:/apps/test/scripts
For sure USER1 must be created on remoteserver
I'm trying to SFTP Compute Engine from MAC using Filezilla. I can SSH with port 22 without any problem. But I need R/W/D access to my files and trying SFTP to port 21 and getting the following error,
Command: keyfile "/bitnami-google-api-project-4xxxxxxxxxx.pem"
Command: open "bitnami#104.xxx.xxx.xxx" 21
Error: Connection refused
Error: Could not connect to server
I referred a couple of similar threads here nothing make this work, sofar I did,
Bitnami Key added in Google Compute Engine and both are same Added.
PEM key file (MAC) in FileZilla settings.
I'm using root password with default username
Anything I'm missing from the doc to follow to get access through 21?
SFTP runs over an SSH session, usually on TCP port 22. In the Bitnami Stack SFTP is configured to use port 22. In the link below you will find information about how to upload files using SFTP using Bitnami Cloud Images on Google Cloud:
https://docs.bitnami.com/google/faq/#how-to-upload-files-to-the-server-with-sftp
If you want to use SFTP on any other port, you need to open that port on your server and configure SFTP to use port 21. You can open a port on your server following the steps described in the guide below:
https://docs.bitnami.com/google/faq/#how-to-open-the-server-ports-for-remote-access
Normally, to edit my files, I need to ssh into host sunfire and on that host, I need to ssh into another host xcnc1. My files are on xcnc1 which I can only access through sunfire.
My question is how can I access that xcnc1 files from my local machine?
Use Tramp with ad-hoc proxies. Something like C-x C-f /ssh:user1#sunfire|ssh:user2#xnc1:/path/to/file. If user1 or user2 are the same user as your local one, you could omit them.
I am designing an integration service to go to an SFTP location, grab an encrypted file, copy it to another server on our network and decrypt the file. Then use SSIS tasks to load it into a database.
I am using an execute process task to call putty to grab the file, but I'd like to create a new directory on the remote server with the date I'm running the job and move the decrypted file into that directory.
using this commmand with mkdir is creating it on the SFTP server, not the remote server.
for /f "tokens=1* delims=" %%a in ('date /T') do set datestr=%%a
mkdir %datestr%
I'm new to using putty and encryption so any advice would be welcome.
Essentially I want to do this, but I have to create the date folder in the destination: (I'm not using all 1's for the ip :))
get encryptedFile.txt \\111.111.111.111\c$\%datestr%\decryptedFile.txt
I'm using this as my starting point - https://www.mssqltips.com/sqlservertip/3435/using-sftp-with-sql-server-integration-services/
I need to upload a file using ftp or http. I checked downloading from servers like ftp.qt.nokia.com. where download was successful[even though the file(s) downloaded was broken but with almost same size as on Web server]. I tried to upload a file to servers like qt.nokia.com,ftp.trolltech.com. Doing so When I used http, I got an html doc as a response with error count 0,but error string as unkown error. When I used ftp, connection was established, logged in but didn't close connection and again error string unkown error. My point is how can I know that whether my file is uploaded to a server successfully? Can I check it on my own system by setting up a server(for ex: Apache Tomcat server).
Set up a local FTP or HTTP server, you should not rely on any server you don't have full control over. A virtual machine is the probably the most hassle-free solution.