You are not logged in.

#1 2018-09-05 19:30:16

berniz95
Member
From: Vauréal France
Registered: 2016-02-23
Posts: 52

Getting started on FTP

This is very basic I'm afraid, and not quite specific to Bunsenlabs.

I'm trying to transfer files between two PCs connected via ethernet through a simple PLC box (both PCs connected to the same box actually) using FTP (or SFTP as filezilla seems to use).
I've got same logins and passwords on both computers.
I run ftp and try "open <IP address>" and I get "connection refused". (same in filezilla).

Of course I ping that address successfully. What is the next step ?

If I fix that, which is certainly simple, I could have Samba work as well !

Last edited by berniz95 (2018-09-05 19:33:45)

Offline

#2 2018-09-05 19:33:29

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,755

Re: Getting started on FTP

https://wiki.debian.org/SSH#Installation_of_the_server

then on client

ssh user@ip

Last edited by brontosaurusrex (2018-09-05 19:35:21)

Online

#3 2018-09-05 19:46:38

berniz95
Member
From: Vauréal France
Registered: 2016-02-23
Posts: 52

Re: Getting started on FTP

$ ssh 192.168.0.22
ssh: connect to host 192.168.0.22 port 22: Connection refused

Offline

#4 2018-09-05 20:06:58

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,755

Re: Getting started on FTP

Check the server log

cat /var/log/auth.log

For example

# bad attempt
Sep  5 21:53:45 raspberrypi sshd[1765]: Failed password for invalid user rancid from 111.231.190.181 port 6922 ssh2
Sep  5 21:53:46 raspberrypi sshd[1765]: Connection closed by 111.231.190.181 port 6922 [preauth]
# good attempt
Sep  5 22:06:26 raspberrypi sshd[1849]: Accepted publickey for pi from 192.168.1.5 port 40848 ssh2: RSA SHA256:IjG24nmoVwiUojhjgkjhiojklhLaNfmNLjfP/LKuo31f9+nhO2BlIl8
Sep  5 22:06:26 raspberrypi sshd[1849]: pam_unix(sshd:session): session opened for user pi by (uid=0)

Last edited by brontosaurusrex (2018-09-05 20:10:48)

Online

#5 2018-09-08 13:40:59

berniz95
Member
From: Vauréal France
Registered: 2016-02-23
Posts: 52

Re: Getting started on FTP

earlybird wrote:

Next, ensure that the SSH service is running on the server machine (the one you want to connect to)

You're right, ssh wasn't running on the server. I'm not through with it but I think that was the point...

Thank you earlybird and brontosaurusrex for your explanations and hints.

Offline

Board footer

Powered by FluxBB