Re: [gentoo-user] ssh disable password login

2024-01-18 Thread thelma

On 1/18/24 17:01, the...@sys-concept.com wrote:

sshd_config has:
...
PasswordAuthentication no

/etc/init.d/sshd restart

but still can login with password. How to disable password login?


1.)
"PasswordAuthentication no + UsePAM no" worked

I got a respond:  "...Permission denied (publickey,keyboard-interactive)."

this focuses on disabling password-based authentication and the PAM system, 
leaving the door open for other authentication methods that don't rely on 
passwords.

What other authentication methods that don't rely on passwords are?

2.) but so did:
"PasswordAuthentication no + KbdInteractiveAuthentication no"

I got a respond:  "...Permission denied (publickey)"

This also disables password-based authentication but goes further by explicitly 
turning off keyboard-interactive authentication.
This makes the authentication process non-interactive and relies on methods 
like public key authentication.

It seems to me, second method is preferred.


 



Re: [gentoo-user] ssh disable password login

2024-01-18 Thread thelma

On 1/18/24 17:01, the...@sys-concept.com wrote:

sshd_config has:
...
PasswordAuthentication no

/etc/init.d/sshd restart

but still can login with password. How to disable password login?


Hm, most of the reference on the net mention only line: "PasswordAuthentication 
no"
none of them mentioned "usePAM no" need to be enabled

 



[gentoo-user] ssh disable password login

2024-01-18 Thread thelma

sshd_config has:
...
PasswordAuthentication no

/etc/init.d/sshd restart

but still can login with password. How to disable password login?

--
Thelma



[gentoo-user] Re: downloading from cell phone to Gentoo

2024-01-18 Thread Grant Edwards
On 2024-01-18, Philip Webb  wrote:
> 240117 Philip Webb wrote:
>> I want to be able to download photos from my new cellphone to Gentoo.
>> The phone is a Samsung A14 5G ; its pet name is Athene.
>> I use KDE to manage my desktops on my desktop machine ANB6.
>
> Thanks for the many replies, which offer as many different methods.
> I'll try them out & report back.
>
> One further important question : do I need to enable Fuse in the kernel ?

All of the mtp implementations I've tried were user-space filesystems,
so for those you will need Fuse enabled in the kernel. There may be
MTP clients that act more like remote filesystem browsers and don't
use an unerlying Fuse filesystem. It would be cool if someting like
Filezilla spoke MTP.






Re: [gentoo-user] downloading from cell phone to Gentoo

2024-01-18 Thread Alan J. Wylie
Philip Webb  writes:

> One further important question : do I need to enable Fuse in the kernel ?

> From the man page for simple-mtpfs:

"SIMPLE-MTPFS (Simple Media Transfer Protocol FileSystem) is a file
system for Linux (and other operating systems with a FUSE
implementation, such as Mac OS X or FreeBSD) capable of operating on
files on MTP devices attached via USB to local machine. On the local
computer where the SIMPLE-MTPFS is mounted, the implementation makes use
of the FUSE (Filesystem in Userspace) kernel module.  The practical
effect of this is that the end user can seamlessly interact with MTP
device files."


-- 
Alan J. Wylie  https://www.wylie.me.uk/

Dance like no-one's watching. / Encrypt like everyone is.
Security is inversely proportional to convenience



Re: [gentoo-user] downloading from cell phone to Gentoo

2024-01-18 Thread Philip Webb
240117 Philip Webb wrote:
> I want to be able to download photos from my new cellphone to Gentoo.
> The phone is a Samsung A14 5G ; its pet name is Athene.
> I use KDE to manage my desktops on my desktop machine ANB6.

Thanks for the many replies, which offer as many different methods.
I'll try them out & report back.

One further important question : do I need to enable Fuse in the kernel ?

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatcadotinterdotnet




Re: [gentoo-user] [OT] Anyone running mutt outboung smtp on port 587?

2024-01-18 Thread Michael
On Thursday, 18 January 2024 17:02:44 GMT Walter Dnes wrote:
>   I haven't been switched over to fibre yet due to config problems, but
> I'm trying to test port 587 using your settings.  I recompiled mutt
> adding USE="debug gnutls".  With "mutt -d 2" I get the a lot of debug
> output, including the following.  To further complicate things, when I
> switch back to the old muttrc, I get something about "no From:"  I had
> to rebuild without gnutls to get it working again.  What do the last 2
> lines imply?
> 
> [2024-01-18 11:36:00] Sending message...
> [2024-01-18 11:36:00] Looking up smtp.ebox.ca...
> [2024-01-18 11:36:00] Connecting to smtp.ebox.ca...
> [2024-01-18 11:36:00] Connected to smtp.ebox.ca:587 on fd=4
> [2024-01-18 11:36:00] 4< 220 smtp.ebox.ca ESMTP Postfix (Debian/GNU)
> [2024-01-18 11:36:00] 4> EHLO waltdnes.org
> [2024-01-18 11:36:00] 4< 250-smtp.ebox.ca
> [2024-01-18 11:36:00] 4< 250-PIPELINING
> [2024-01-18 11:36:00] 4< 250-SIZE 2000
> [2024-01-18 11:36:00] 4< 250-VRFY
> [2024-01-18 11:36:00] 4< 250-ETRN
> [2024-01-18 11:36:00] 4< 250-STARTTLS
> [2024-01-18 11:36:00] 4< 250-ENHANCEDSTATUSCODES
> [2024-01-18 11:36:00] 4< 250-8BITMIME
> [2024-01-18 11:36:00] 4< 250 DSN
> [2024-01-18 11:36:00] 4> STARTTLS
> [2024-01-18 11:36:00] 4< 220 2.0.0 Ready to start TLS
> [2024-01-18 11:36:00] gnutls_handshake: A packet with illegal or unsupported
> version was received. 
> [2024-01-18 11:36:02] Could not negotiate TLS connection

The "no From:" complaint could be fixed by specifying in your muttrc:

set from = "waltd...@waltdnes.org"

The gnutls error is more cryptic.  You'll have to check what certificate is 
sent by the server to deduce what causes the gnutls message.  You can try 
connecting to the server with the openssl s_client:

openssl s_client -connect smtp.ebox.ca\:587 -starttls smtp -showcerts

or with gnutls-cli:

gnutls-cli --starttls-proto smtp smtp.ebox.ca -p 587

then try to negotiate a connection:

ehlo there
...
Ctrl+D

Gnutls should run starttls and when you enter "Ctrl+D" it will print out what 
in particular it has a problem with.

The openssl attempt will show the certificates and you can check the whole 
chain, in case you missing a certificate.  As long as the CA certificate is in 
your /etc/ssl/certs/ there shouldn't be a problem.

Alternatively, add the server certificate(s) in '~/.mutt/certificates' and 
specify this path by setting 'set certificate_file' in your muttrc.  The first 
time you try to connect to your server mutt should warn you if there is a 
mismatch between the server's certificate and your SMTP server domain CN 
field, or anything else.  It will ask you to accept it and allow you to 
proceed with the connection.

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: downloading from cell phone to Gentoo

2024-01-18 Thread Tsukasa Mcp_Reznor



From: Tsukasa Mcp_Reznor 
Sent: Thursday, January 18, 2024 1:38 PM
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: downloading from cell phone to Gentoo




From: Grant Edwards 
Sent: Thursday, January 18, 2024 12:33 PM
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: downloading from cell phone to Gentoo

On 2024-01-18, Philip Webb  wrote:
>> I want to be able to download photos from my new cellphone to Gentoo.
>> The phone is a Samsung A14 5G ; its pet name is Athene.
>> I use KDE to manage my desktops on my desktop machine ANB6.

>MTP can be a bit tempermental if that's what's being used. It's been
>around for enough years that it should "jsut work", but that's still
>no my experience, even with recent phones. I usually fire up an sftp
>server on the phone and do file transfers via Wifi. I find it to be
>less hassle and faster.

I've been using KDE Connect for quite awhile, you should give it a shot.  It's 
in the main gentoo portage tree, and once you install it, it'll give a link to 
the android apk in the install completion info.

Forgot to add, KDE Connect opens a port on your computer and phone for the app 
to connect, it uses my WiFi, so no need for a transfer cable of any kind.  





Re: [gentoo-user] Re: downloading from cell phone to Gentoo

2024-01-18 Thread Tsukasa Mcp_Reznor



From: Grant Edwards 
Sent: Thursday, January 18, 2024 12:33 PM
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: downloading from cell phone to Gentoo

On 2024-01-18, Philip Webb  wrote:
>> I want to be able to download photos from my new cellphone to Gentoo.
>> The phone is a Samsung A14 5G ; its pet name is Athene.
>> I use KDE to manage my desktops on my desktop machine ANB6.

>MTP can be a bit tempermental if that's what's being used. It's been
>around for enough years that it should "jsut work", but that's still
>no my experience, even with recent phones. I usually fire up an sftp
>server on the phone and do file transfers via Wifi. I find it to be
>less hassle and faster.

I've been using KDE Connect for quite awhile, you should give it a shot.  It's 
in the main gentoo portage tree, and once you install it, it'll give a link to 
the android apk in the install completion info.  





Re: [gentoo-user] downloading from cell phone to Gentoo

2024-01-18 Thread ralfconn

Il 18/01/24 04:28, Philip Webb ha scritto:

I want to be able to download photos from my new cellphone to Gentoo.
The phone is a Samsung A14 5G ; its pet name is Athene.
I use KDE to manage my desktops on my desktop machine ANB6.
...
Manjaro suggests soomething called 'MTP' is involved,
perhaps 'Media Transfer Protocol' (?).

Does anyone have any suggestions how to get this to work on Gentoo ?


No KDE nor GNOME here but this works in XFCE:

 $ eix -I gvfs
[I] gnome-base/gvfs
 Available versions:  1.50.6^t 1.52.1^t (~)1.52.2^t {afp archive 
bluray cdda elogind fuse gnome-online-accounts google gphoto2 +http ios 
keyring mtp nfs policykit samba systemd test +udev udisks zeroconf}
 Installed versions:  1.52.2^t(19:26:52 01/11/24)(cdda elogind fuse 
http mtp policykit udev udisks -afp -archive -bluray 
-gnome-online-accounts -google -gphoto2 -ios -keyring -nfs -samba 
-systemd -test -zeroconf)

 Homepage:    https://wiki.gnome.org/Projects/gvfs
 Description: Virtual filesystem implementation for GIO

Note the mtp USE which pulls in:

[I] media-libs/libmtp
 Available versions:  1.1.21(0/9) **(0/9)*l {+crypt doc 
examples static-libs}
 Installed versions:  1.1.21(0/9)(01:14:47 11/15/23)(crypt -doc 
-examples -static-libs)

 Homepage:    https://libmtp.sourceforge.net/
 Description: Implementation of Microsoft's Media Transfer 
Protocol (MTP)


The phone auto-mounts as soon as you switch Android to 'file transfer' 
and works well for me, less so for my daughter when she tries to 
transfer 10's of Gb of videos.


raf




[gentoo-user] Re: downloading from cell phone to Gentoo

2024-01-18 Thread Grant Edwards
On 2024-01-18, Philip Webb  wrote:
> I want to be able to download photos from my new cellphone to Gentoo.
> The phone is a Samsung A14 5G ; its pet name is Athene.
> I use KDE to manage my desktops on my desktop machine ANB6.

MTP can be a bit tempermental if that's what's being used. It's been
around for enough years that it should "jsut work", but that's still
no my experience, even with recent phones. I usually fire up an sftp
server on the phone and do file transfers via Wifi. I find it to be
less hassle and faster.






Re: [gentoo-user] [OT] Anyone running mutt outboung smtp on port 587?

2024-01-18 Thread Walter Dnes
  I haven't been switched over to fibre yet due to config problems, but
I'm trying to test port 587 using your settings.  I recompiled mutt
adding USE="debug gnutls".  With "mutt -d 2" I get the a lot of debug
output, including the following.  To further complicate things, when I
switch back to the old muttrc, I get something about "no From:"  I had
to rebuild without gnutls to get it working again.  What do the last 2
lines imply?

[2024-01-18 11:36:00] Sending message...
[2024-01-18 11:36:00] Looking up smtp.ebox.ca...
[2024-01-18 11:36:00] Connecting to smtp.ebox.ca...
[2024-01-18 11:36:00] Connected to smtp.ebox.ca:587 on fd=4
[2024-01-18 11:36:00] 4< 220 smtp.ebox.ca ESMTP Postfix (Debian/GNU)
[2024-01-18 11:36:00] 4> EHLO waltdnes.org
[2024-01-18 11:36:00] 4< 250-smtp.ebox.ca
[2024-01-18 11:36:00] 4< 250-PIPELINING
[2024-01-18 11:36:00] 4< 250-SIZE 2000
[2024-01-18 11:36:00] 4< 250-VRFY
[2024-01-18 11:36:00] 4< 250-ETRN
[2024-01-18 11:36:00] 4< 250-STARTTLS
[2024-01-18 11:36:00] 4< 250-ENHANCEDSTATUSCODES
[2024-01-18 11:36:00] 4< 250-8BITMIME
[2024-01-18 11:36:00] 4< 250 DSN
[2024-01-18 11:36:00] 4> STARTTLS
[2024-01-18 11:36:00] 4< 220 2.0.0 Ready to start TLS
[2024-01-18 11:36:00] gnutls_handshake: A packet with illegal or unsupported 
version was received.
[2024-01-18 11:36:02] Could not negotiate TLS connection

-- 
Roses are red
Roses are blue
Depending on their velocity
Relative to you



Re: [gentoo-user] downloading from cell phone to Gentoo

2024-01-18 Thread Dr Rainer Woitok
Philip,

On Wednesday, 2024-01-17 22:28:27 -0500, you wrote:

> I want to be able to download photos from my new cellphone to Gentoo.

If all else fails,  you could use "adb"  from package "dev-util/android-
tools".   However,  "adb" requires "USB Debugging"  to be enabled on the
cell phone.   This option can be found under  "Settings -> Developer Op-
tions"  (if the "Developer Options"  are still hidden  in the "Settings"
menu,  make them visible once and forever by opening  "Settings -> About
Device -> Software Information" and tapping "Build Number" seven times).

Sincerely,
  Rainer



Re: [gentoo-user] downloading from cell phone to Gentoo

2024-01-18 Thread Jack

On 1/17/24 22:28, Philip Webb wrote:

I want to be able to download photos from my new cellphone to Gentoo.
The phone is a Samsung A14 5G ; its pet name is Athene.
I use KDE to manage my desktops on my desktop machine ANB6.

I've tried doing it with Manjaro & it works.  It is vital
to have Athene awake when the USB connection is plugged into ANB6 :
a notice pops up asking to 'Allow', which I did.
Manjaro puts up its own notice, announcing a new device & asking what to do ;
I opened it in Dolphin, which shows Athene's Gallery
under  GalaxyA145G -> Internal storage -> DCIM -> Camera ,
which lists the photo images ;
Dolphin can then copy them to its own file system readily
& Gwenview shows them correctly.

Normally on Gentoo, I mount devices -- eg USB sticks -- by hand,
ie 'mount /dev/sdb1 /mnt/usb' or 'musb' for short (via  .bashrc ).
I've looked at KDE device settings under  Hardware -> Removable Storage ,
checked the box 'on attach' & tried with each of the  3  offerings,
ie 'All known / Attached / Disconnected Devices', but no joy.

Athene shows a recharging message, but nothing else happens, incl in ANB6
On my phone (ancient Motorola, running an ancient version of Android) 
when I plug it in, not only does it say it is charging, but it also says 
how it is connected and tap to change.  Are you sure the phone itself is 
in MTP mode or (I've forgotten the name) which is the one I think more 
likely to need the full path you showed above.  You might hunt through 
the phone settings to find one which controls how it connects.  Note I 
say this to be compulsive, since it works under Manjaro.  As another bit 
of info, how is it identified by lsusb?





Re: [gentoo-user] downloading from cell phone to Gentoo

2024-01-18 Thread Alan J. Wylie
[resending from the correct, subscribed, email address]

Philip Webb  writes:

> I want to be able to download photos from my new cellphone to Gentoo.
> The phone is a Samsung A14 5G 

...

> Manjaro suggests soomething called 'MTP' is involved,
> perhaps 'Media Transfer Protocol' (?).
>
> Does anyone have any suggestions how to get this to work on Gentoo ?

This works for me

# qfile /usr/bin/simple-mtpfs 
sys-fs/simple-mtpfs: /usr/bin/simple-mtpfs

Though sometimes I've had problems, fixed in the latest sources
available from  but the Gentoo
version is currently the same as that on github last time I pulled.

[as root]
simple-mtpfs --device 1 -o allow_other,ro /mnt/phone

[as normal user, copy]
rsync ...

[again, as root]
fusermount -u /mnt/phone

-- 
Alan J. Wylie  https://www.wylie.me.uk/

Dance like no-one's watching. / Encrypt like everyone is.
Security is inversely proportional to convenience