LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-20-2023, 09:18 AM   #1
danabooth
LQ Newbie
 
Registered: Dec 2022
Location: Northwest USA
Distribution: Debian
Posts: 10

Rep: Reputation: 0
sftp using MC


I had a mail relay that used OpenBSD; it's LAN address was .239. I have since made another relay, and used the old OpenBSD box to make a Debian 12 box for use in our shop, and it also uses .239. (I can't control that, corporate has a strict mapping system in place) I can ssh and sftp from a terminal just fine, _but_, I can't sftp from Midnight Commander, my go-to file util. This leads me to believe that perhaps MC uses a different key file than the system (?), and that perhaps it's using a key meant for the old BSD box. If that's the case, where might MC keep its keyfile, as I just can't find it. Any insight would be appreciated.
 
Old 09-20-2023, 09:31 AM   #2
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,628

Rep: Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557

Checking man mc says the standard ~/.ssh/known_hosts is used, and also states that an incorrect key will result in an appropriate message being shown...

 
Old 09-20-2023, 01:44 PM   #3
danabooth
LQ Newbie
 
Registered: Dec 2022
Location: Northwest USA
Distribution: Debian
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by boughtonp View Post
Checking man mc says the standard ~/.ssh/known_hosts is used, and also states that an incorrect key will result in an appropriate message being shown...

I'm not sure what the problem is at this point, D/12 doesn't keep logs how I'm used to, there's no auth.log, and none of the logs indicated what the problem was, so I just wiped the disk and installed D/11, and it all works now. Must be some security thing, and how MC announces itself, I don't know how that stuff works.
 
Old 09-20-2023, 04:40 PM   #4
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,628

Rep: Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557

The change in logging is noted in the Debian 12 Release Notes.

Specifically, under "Issues to be aware of for bookworm" is Changes to system logging:
Quote:
In bullseye, rsyslog was installed by default and the systemd journal was configured to forward log messages to rsyslog, which writes messages into various text files such as /var/log/syslog.

From bookworm, rsyslog is no longer installed by default.
Sticking with Debian 11 for a few years allows you to defer the decision, but ultimately your choice will be re-installing and configuring rsyslog, or switching to a systemd-free derivative, such as Devuan.

 
1 members found this post helpful.
Old 10-09-2023, 06:39 AM   #5
danabooth
LQ Newbie
 
Registered: Dec 2022
Location: Northwest USA
Distribution: Debian
Posts: 10

Original Poster
Rep: Reputation: 0
All of the logging stuff aside, I still don't know why debian 12 refused MC's connection attempts using sftp on port 22
 
Old 10-09-2023, 06:55 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
debian itself does not refuse anything. Probably the default configuration is different or stricter. You can use journalctl to read the logs, or you can use rsyslog if you wish, but that is not really suggested.
 
  


Reply

Tags
sftp, ssh, sshd



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SFTP using another account with passwordless sftp access jobart08 Linux - Newbie 3 03-23-2016 06:14 AM
how to create sftp user only in red hat 4 not ftp user ..only sftp user princeu28 Linux - Newbie 1 10-14-2008 08:10 AM
cannot login into SFTP server using Net::SFTP cccc Programming 1 10-31-2007 06:23 AM
How do I use sftp to upload my web site? (no sftp tar command) johnMG Linux - Networking 6 06-21-2005 09:14 PM
Files truncated by sftp/sftp-server at 65kb gato Linux - Networking 1 12-18-2003 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration