How to download entire server folder from cloud linux server using cmd commands

title
No description
78 Replies
Admincraft Meta
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by spedbob#0
Discount Milk
Discount Milk2y ago
Connect to it using sftp and grab it using your GUI
Spedbob
SpedbobOP2y ago
sftp? im new to server stuff
Discount Milk
Discount Milk2y ago
Use the program "Winscp", it's an ssh client and sftp client in one It'll make everything you're trying to do a hell of a lot easier
Spedbob
SpedbobOP2y ago
so if i connect winscp to my cloud server it adds a gui and stuff?
Discount Milk
Discount Milk2y ago
To an extent, yeah.
Spedbob
SpedbobOP2y ago
i wanted to do that a bit ago but didnt look into it much would i also be able to move server folders into it
Discount Milk
Discount Milk2y ago
You can use it to do file transfers yeah
Spedbob
SpedbobOP2y ago
nice, that was gonna be my second question lol
Discount Milk
Discount Milk2y ago
It doesn't give you like A desktop environment on the server or anything But it gives you a file explorer and a text box to type into at the same time.
Spedbob
SpedbobOP2y ago
so would i just be able to drag stuff into the file explorer even if the server is on a cloud instead of my pc actually its all good, ill mess around with it and if i have problems ill prob be back, ty
Discount Milk
Discount Milk2y ago
👍 Also, any time you move files to or from your server I would STRONGLY recommend zipping it up first
Spedbob
SpedbobOP2y ago
ok does winscp make it easier
Discount Milk
Discount Milk2y ago
SFTP file transfers suck if you try to transfer many files at once
Spedbob
SpedbobOP2y ago
because i remember i tried to move a folder once and it just moved an empty folder or something, i dont remember exactly what happened but it didnt move the folder properly, which leads me to this question
Lunaiskey
Lunaiskey2y ago
archive the folder using zip or tar or tar.gz or whatever, then pull it off the server using an ftp client like senor leche said, winscp isnt the only ftp client that exists, filezilla is also one you could use but i personally also use winscp
Torrent
Torrent2y ago
FileZilla has been quite unreliable for me, usually doing big file transfers will randomly disconnect me from the remote connection or just give me error codes. Winscp is the goat
ProGamingDk
ProGamingDk2y ago
sftp is a resumeable protocol even if it disconnects u can just resume
Spedbob
SpedbobOP2y ago
i got winscp but now im uncertain on how to continue with connecting
Torrent
Torrent2y ago
Yeah but FileZilla kept disconnecting me over and over
piggy
piggy2y ago
@Torrent
torrentstaff has reached level 2! Roles Added: Level 2
ProGamingDk
ProGamingDk2y ago
havent had that happen to me yet ¯\_(ツ)_/¯
Torrent
Torrent2y ago
Maybe skill issue
Spedbob
SpedbobOP2y ago
the server is an oracle cloud server thats actually my friends but he connecting my ssh key or whatgever to it aswell
Discount Milk
Discount Milk2y ago
Where are you stuck at?
Spedbob
SpedbobOP2y ago
No description
Spedbob
SpedbobOP2y ago
do i need him to send me the key file or should i just put the one i have i dont exactly remember which mine is since i set this all up a while ago and just got back and started messing with it again
ProGamingDk
ProGamingDk2y ago
put the one u have
Spedbob
SpedbobOP2y ago
No description
Spedbob
SpedbobOP2y ago
do i still need the hostname and stuff?
ProGamingDk
ProGamingDk2y ago
hostname is just the ip
Spedbob
SpedbobOP2y ago
yeah hollup cuz i was trying to do it earlier without an ssh and kept getting this error
Spedbob
SpedbobOP2y ago
No description
Torrent
Torrent2y ago
If your host set you up with key pair authentication then you would use your private key to connect, host name is the IP, and username is whatever username he set you up with or the one you chose, depends on how you coordinated it. Password is usually left blank with ssh keys but you may have set up a passcode for your ssh key. Leave certificate blank unless you have that setup as well. Passcode for ssh key does not equal password for login So leave it blank unless it asks you for the passcode after you try to connect
Spedbob
SpedbobOP2y ago
i was looking at the ssh key thing and it said winscp should auto convert it to a putty format file but mine didnt
Torrent
Torrent2y ago
What is your file extension for the key
Spedbob
SpedbobOP2y ago
also i feel like my ip is wrong but idk why, i did ip addr and put in the one next to inet
Spedbob
SpedbobOP2y ago
No description
Torrent
Torrent2y ago
Looks like a Microsoft publisher file extension. Try this https://www.simplified.guide/putty/convert-ssh-key-to-ppk Putty private keys usually end in .ppk
Spedbob
SpedbobOP2y ago
ye ill do that rn not converting im guessing because it wants a private key and i have the public or idk
Torrent
Torrent2y ago
There’s your problem. You need a private key
Spedbob
SpedbobOP2y ago
yeah i dont remember how to get it guessing through oracle
Torrent
Torrent2y ago
Didn’t you generate one with puttygen?
Spedbob
SpedbobOP2y ago
nah this public is from a while ago
Torrent
Torrent2y ago
How do you have the public key but not the private one How did you even get the public key
Spedbob
SpedbobOP2y ago
uh oracle i tried getting a free cloud server from oracle but the wait time is crazy, so i just got ssh keys and connected to my friends
Torrent
Torrent2y ago
So you don’t even own this server ._. Do you even have permission to access the server files? And you say “ssh keys” but you only have the public key…
Spedbob
SpedbobOP2y ago
think i found it yeah
Torrent
Torrent2y ago
:jerry:
Spedbob
SpedbobOP2y ago
my friend woke up lmao
Torrent
Torrent2y ago
:1146_dance:
Spedbob
SpedbobOP2y ago
he remembered where it was
Torrent
Torrent2y ago
So ur good right Got the private key now?
Spedbob
SpedbobOP2y ago
ye its a .key, so i should convert to putty then just call it a day
Spedbob
SpedbobOP2y ago
No description
Torrent
Torrent2y ago
Thar she blows, ahab
Spedbob
SpedbobOP2y ago
gg
Torrent
Torrent2y ago
Select it in winscp authentication and ur good to go
Spedbob
SpedbobOP2y ago
No description
Torrent
Torrent2y ago
:thonk: U sure u did the login right
Spedbob
SpedbobOP2y ago
idc anymore lmao isnt the ip 10.0.0.232 posting that in public server prob not bueno
Torrent
Torrent2y ago
22 is the default port Nobody here is going to steal ur info
Spedbob
SpedbobOP2y ago
is mine that 24? ye
Torrent
Torrent2y ago
try 24
Discount Milk
Discount Milk2y ago
Is it a locally hosted machine?
Spedbob
SpedbobOP2y ago
no its the oracle free cloud server same error
Discount Milk
Discount Milk2y ago
Well you wouldn't connect to a 10.0.0.0/24 network from your house over the internet.
Spedbob
SpedbobOP2y ago
yeah i felt it was wrong but idk where to get it
Discount Milk
Discount Milk2y ago
Your oci panel should have your VPS IP
Spedbob
SpedbobOP2y ago
the panel on the oracle website?
Discount Milk
Discount Milk2y ago
What IP were you connecting to with putty before moving to winscp? Use that in winscp
Spedbob
SpedbobOP2y ago
i never used putty ive been doing stuff through cmd just raw
Discount Milk
Discount Milk2y ago
What IP were you connecting to there Use that in winscp
Spedbob
SpedbobOP2y ago
the public? its the public ip but now its refusing the username nvm we in my heros
Torrent
Torrent2y ago
:2325_catJAM: Let’s goooo
Louis_Dew
Louis_Dew2y ago
May I ask why its better zo zip it first?
Discount Milk
Discount Milk2y ago
Explained in my next message
ProGamingDk
ProGamingDk2y ago
also makes it so theres less to transfer (if ur compressing it)

Did you find this page helpful?