upload files - SSH & FTP servers
Hi. I try ssh and ftp servers.
SSH: I can login into bash, but I cant login over winscp using SFTP protocol. I can login using SCP protocol, but I can't upload files. I get note: no scp transmission allowed... FTP: ftp starts, I can log into default account. Again a can't upload any file. Where is configuration file of ftp deamon? I'd like get to know resolution of both problems... |
Hi,
1) Which 4MLinux version? 2) Please post the output of the "server" command here. 3) Are you trying to connect to the 4MLinux server or from the 4MLinux server ? . |
ver 21.0 march 2017
I want connect TO 4mlinux from windows station and winscp.exe SFTP port22 connection - no naswer & closed connection at once SCP port22 connection - I can log in, I can list directories, /via scp connection of winscp.exe/ but when I try upload - "Cannot execute scp to start transfer. Please make sure, that SCP is installed on the server and path to it is included in PATH. You may also try SFTP instead of SCP. Command failed with return code 127." FTP /also with winscp.exe/: I can login to default account without password & I can see test.html file. I can download it but I cant upload anything "Copying files to remote side failed. Unknown command" |
And the output of the "server" command is...
|
Quote:
. |
Nothing special - only info that they are running...
List of servers: firewall --> iptables (4MLinux Firewall) ftpd --> BusyBox (via inetd) httpd --> BusyBox (via inetd) proxy --> Polipo (standalone) smtpd --> not installed sshd --> OpenSSH (via inetd) telnetd --> BusyBox (via inetd) Examples how to use them: ftpd start --> start FTP server ftpd stop --> stop FTP server ftpd restart --> restart FTP server ftpd test --> test FTP server serverd start --> start all servers serverd stop --> stop all servers serverd restart --> restart all servers serverd test --> test all servers PHP support in Apache (if installed) is enabled by default. Stunnel and MariaDB (if installed) are started automatically by httpd. See also: /etc/firewall /etc/httpd /etc/inetd /etc/php /etc/polipo /etc/server |
Quote:
https://sourceforge.net/projects/lin...0/addons/lamp/ FTP BusyBox acts as an anonymous FTP server with uploading disabled by default. Execute the "upload" command to enable uploading. You can add this command at the very end of the /etc/init.d/autostart.sh file to make this change permanent. SFTP By default the OpenSSH server is started at boot so you should be able to connect. See also: http://www.linuxquestions.org/questi...er-4175583588/ SCP Not supported. You can also have a look at /var/log/messages. Additionally, each of the servers included in 4MLinux has the built-in self-testing procedure (see the output of the "server" command posted by you). . |
And by the way:
You wrote that you had used WinSCP to connect. I am a big fun of this program. It's available in 4MLinux via Wine (Menu -> Extensions -> Wine -> Apps -> WinSCP) . |
I have got the problem closer!
sftp via ssh works for root only! for other user doesn't work It's from /var/log/messagess: Quote:
full log Quote:
|
|
Only for root...
BUT I have added user zapasowy. And I now changed /etc/password Quote:
Now all works properly BUT with root priviledges. Thank You for help. How can I close this thread? |
BTW - great distro.
Świetna robota :) |
Quote:
(Thanks!) . |
Quote:
|
All times are GMT -5. The time now is 07:13 PM. |