4MLinuxThis forum is for the discussion of 4MLinux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...
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"
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
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
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.
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)
sftp via ssh works for root only!
for other user doesn't work
It's from /var/log/messagess:
Quote:
Mar 27 10:45:39 4MLinux auth.info ssh-server[15238]: Accepted password for root from 172.16.1.4 port 50650 ssh2
//all OK
Mar 27 10:48:18 4MLinux auth.info ssh-server[15289]: Failed password for zapasow y from 172.16.1.4 port 50655 ssh2
//bed password
Mar 27 10:47:10 4MLinux auth.info ssh-server[15265]: Accepted password for zapas owy from 172.16.1.4 port 50651 ssh2
//good password for other user BUT DONT WORK - connection is closed at once
Why doesn't work for zapasowy user? I can log into zapasowy for ssh session but not for sftp via winscp.
full log
Quote:
Mar 25 11:24:05 4MLinux auth.info ssh-server[14344]: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory
Mar 25 11:24:05 4MLinux auth.info ssh-server[14344]: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory
Mar 27 10:45:39 4MLinux auth.info ssh-server[15238]: Accepted password for root from 172.16.1.4 port 50650 ssh2
Mar 27 10:47:10 4MLinux auth.info ssh-server[15265]: Accepted password for zapas owy from 172.16.1.4 port 50651 ssh2
Mar 27 10:47:46 4MLinux auth.info ssh-server[15269]: Accepted password for zapas owy from 172.16.1.4 port 50653 ssh2
Mar 27 10:48:08 4MLinux auth.info ssh-server[15285]: Accepted password for zapas owy from 172.16.1.4 port 50654 ssh2
Mar 27 10:48:18 4MLinux auth.info ssh-server[15289]: Failed password for zapasow y from 172.16.1.4 port 50655 ssh2
Mar 27 10:48:21 4MLinux auth.info ssh-server[15289]: Accepted password for zapas owy from 172.16.1.4 port 50655 ssh2
Mar 27 10:48:48 4MLinux auth.info ssh-server[15294]: Accepted password for root from 172.16.1.4 port 50656 ssh2
Mar 27 10:49:00 4MLinux user.info kernel: nf_conntrack version 0.5.0 (15677 buck ets, 62708 max)
Mar 27 10:49:05 4MLinux user.info kernel: nf_conntrack: automatic helper assignm ent is deprecated and it will be removed soon. Use the iptables CT target to att ach helpers instead.
Mar 27 10:49:32 4MLinux auth.info ssh-server[15369]: WARNING: could open open /u sr/local/etc/moduli (No such file or directory), using fixed modulus
Mar 27 10:49:42 4MLinux auth.info ssh-server[15369]: Accepted password for root from 172.16.1.4 port 50661 ssh2
Mar 27 10:49:42 4MLinux auth.info ssh-server[15371]: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory
Mar 27 10:49:42 4MLinux auth.info ssh-server[15371]: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.