[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 333
  • Last Modified:

How to upload file with FTP to another Linux server through SSH

Hi Everyone,

I have two Linux servers. I want to upload a file from one of my Linux server to second one using FTP protocol through SSH.

How can i do this?

I don't want to download it from the first server and then upload it to second server.

Please help, thank.

p.s.: Urgent
0
blacklord
Asked:
blacklord
  • 2
  • 2
1 Solution
 
edkim80Commented:
use scp

login to one server1 via ssh then do..

scp filename username@server2:/path/to/directory
0
 
blacklordAuthor Commented:
Thanks for quick answer but when i try this it gives "lost connection" error.

What can be the reason?
0
 
edkim80Commented:
are you able to connect to both machines through ssh?
0
 
blacklordAuthor Commented:
ahh, got it. I was trying to connect with incorrect user.

Thanks, you got the points!

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now