[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

How to hell does SCP work? SSH works just fine, and I can view

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 23
Thread images: 1

File: ssh.png (12KB, 256x256px) Image search: [Google]
ssh.png
12KB, 256x256px
How to hell does SCP work? SSH works just fine, and I can view all the files from the computer I'm SSHed into and download them. But when I try to upload a file to the computer the shit just don't work. I've got my webserver running ubuntu server and my laptop on Windows using an ssh client that supports SCP.
>>
>>55759391
Same transaction as SSH, only the data that's being transmitted is going to a file
>>
>>55759409
So if ssh works then why does scp fail, and fail only one way (the way I need it to work)
>>
Explain what you are doing and whats happening, maybe we can help you out.
>>
>>55759473
Can you ssh both ways?
>>
>>55759473
PEBKAC
>>
You run scp on the laptop.
Be it upload or download, just swap the source file and destination file.
If it failed to upload, most likely you don't have write permission on that folder.
>>
>>55759526
>>55759541
My server accepts all the connections from my laptop but my laptop doesn't accept my server. SSH works fine up I try to upload a file to my server from my laptop then I get the error "ssh: connect to host [laptop] port 22: Connection refused"
>>
>>55759778
>I try to upload a file
>to my server
>from my laptop

>ssh: connect to host [laptop] port 22: Connection refused
>connect to host [laptop]
>connect to laptop

>upload a file to my server
>connect to laptop

wew
>>
>>55759778
Run scp on your laptop.

scp source destination

To upload to server:
scp source user@server:/destination/folder

To download from server:
scp user@server:/source/file destination

Oh well, if it's too hard for you get a sftp client, like winscp.
>>
>>55759391
scp -i /path/to/key /path/to/file.ext user@server:/path/to/put/file/.
>>
>>55759795
>>55759844
I'm running the command correctly but it just says "ssh: connect to host [laptop] port 22: Connection refused" This worked fine when I was using linux on both systems but I've never encountered Windows errors before.
>>
They're a self funded agency that financially exploits the anomalous artifacts they are in possession of. Through liberal usage of memory-altering substances they clandestinely protect the rational world from the dangerously abstract.
>>
>>55759894
You clearly don't want any help because you still haven't posted the command that's failing. I'll just treat your threads as a weak attempt at trolling and move on.
>>
>>55759939
 Laptop@Laptop ~
$ scp Laptop@Laptop/file Server@server/destination
ssh: connect to host Laptop port 22: Connection refused
>>
>>55759997
Use /file instead of Laptop@Laptop/file.
>>
>>55759997
try without Laptop@Laptop, just /path/to/file Server@server/path/to/file
>>
>itt
>op can't google scp examples
>op can't use man pages
>op can't follow consise examples provided by generous anons
>op confirmed for illiterate SOB
>>
>>55760089
Add to it doesn't say thank you after the advice worked.
>>
>>55760089
I actually figured it out. I'm not use to windows-linux interactions but I managed to nail it down to the very specific syntax needed for the command to work on windows AND I had to change ownership of the file BEFORE I sent it because of some Windows fuckery.
>>
>>55760117
You ain't fooling anyone. Connection failed is not Windows fuckery. With the way you wrote the command it tried to connect to ssh service on your laptop, which clearly does not exist (or behind firewall). Not even sure why you are trying to save face, since you're anonymous.
>>
>>55760179
OP Status: TOLD
>>
>>55759997
try:
scp Laptop@Laptop:/file Server@server:/destination

Notice the added colons...
Thread posts: 23
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.