Re: [gentoo-user] Long boot time after kernel update

2021-12-26 Thread Wols Lists

On 26/12/2021 18:50, Jacques Montier wrote:

Hello all,

I update to the last stable kernel 5.15.11-gentoo with the same 
configuration as the old kernel and now, the boot time is quite long.


Test :
5.10.76-gentoo-r1 kernel : boot time 30s
5.15.11-gentoo kernel : boot time 70s

My setup (non EFI) :
- SSD 250 Go :  /dev/sdd1 ext2 for boot and /dev/sdd2 ext4 for /
- SSD 250 Go /dev/sdc1 ext4 for home
- Two 2T sata disks Seagate BarraCuda 3.5 /dev/sda1 ext4 for data and 
/dev/sdb1 ext4 for data backup (Not Raid)


With the new kernel, the two Seagate disks seem to make the boot time 
quite longer.


Test :
booting without mounting the disks : 20s
booting with mounting only one disk : 25s
booting with both disks : more than 60s

Testing the disks :
- smartctl -s on -a /dev/sda and smartctl -s on -a /dev/sdb : No error 
reported.

- fsck -a /dev/sda1 and fsck -a /dev/sdb1 : clean
- e2fsck -cfpv /dev/sda1 : clean

Nevertheless, dmesg shows a lot of errors (attached image) with the new 
kernel.

Those errors do not appear with 5.10.76-gentoo-r1 kernel.

I'm rather confused...
Have you any idea ?


What does fdisk print say? Are your partitions mis-aligned?

Unlikely, but it depends how long ago they were partitioned. There's all 
this stuff about switching from 512B to 4K sectors and that *could* be 
the problem.


Cheers,
Wol



Re: [gentoo-user] ssh problem

2021-12-26 Thread Neil Bothwick
On Sun, 26 Dec 2021 18:07:56 +, Michael wrote:

> > Host a..cc
> > Ciphers +ssh-rsa  
> 
> The initial error is about "no matching host key type", so the option
> needed would be:
> 
> HostKeyAlgorithms +ssh-rsa

You're right, I was looking at the wrong file when I looked for how I
dealt with this a while ago.


-- 
Neil Bothwick

Top Oxymorons Number 21: "Now, then ..."


pgpevRu2A4QEv.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] ssh problem

2021-12-26 Thread Grant Taylor

On 12/26/21 9:42 AM, Philip Webb wrote:

I want to login to a remote site  using 'ssh'.
The response I get is "Unable to negotiate with  port :
no matching host key type found. Their offer: ssh-rsa,ssh-dss".
Yesterday, I updated 'openssh' :


Michael's pointing in the proper direction.

Check out the OpenSSH Legacy Options page for more details.  I've 
successfully used this information to log into Red Hat 5.x from the 
'90s.  (Not contemporary RHEL.)


Link - OpenSSH: Legacy Options
 - https://www.openssh.com/legacy.html

Note:  This works exceedingly well in the ssh client config file 
(~/.ssh/config or /etc/ssh/ssh_config).  Using the config file means 
that anything that uses OpenSSH commands benefits from and inherits the 
configuration parameters; rsync, git, what have you.




--
Grant. . . .
unix || die



Re: [gentoo-user] ssh problem

2021-12-26 Thread Michael
On Sunday, 26 December 2021 17:00:46 GMT Neil Bothwick wrote:
> On Sun, 26 Dec 2021 11:42:41 -0500, Philip Webb wrote:
> > I want to login to a remote site  using 'ssh'.
> > The response I get is "Unable to negotiate with  port
> > : no matching host key type found. Their offer: ssh-rsa,ssh-dss".
> 
> > Yesterday, I updated 'openssh' :
> It sounds like the host may be running an old version of sshd that only
> offers ciphers that are now disabled by default in newer releases. You
> can get round this by enabling those ciphers for this host, with
> something like this in ssh_config
> 
> Host a..cc
> Ciphers +ssh-rsa

The initial error is about "no matching host key type", so the option needed 
would be:

HostKeyAlgorithms +ssh-rsa

After which another error may pop up, probably about Ciphers.  ;-)


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


Re: [gentoo-user] ssh problem

2021-12-26 Thread Neil Bothwick
On Sun, 26 Dec 2021 11:42:41 -0500, Philip Webb wrote:

> I want to login to a remote site  using 'ssh'.
> The response I get is "Unable to negotiate with  port
> : no matching host key type found. Their offer: ssh-rsa,ssh-dss".
> Yesterday, I updated 'openssh' :

It sounds like the host may be running an old version of sshd that only
offers ciphers that are now disabled by default in newer releases. You
can get round this by enabling those ciphers for this host, with
something like this in ssh_config

Host a..cc
Ciphers +ssh-rsa


-- 
Neil Bothwick

Last words of a Windows user: = Why does that work now?


pgpxxfRiE82eu.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] ssh problem

2021-12-26 Thread Branko Grubić
On Sun, 2021-12-26 at 11:42 -0500, Philip Webb wrote:
> I want to login to a remote site  using 'ssh'.
> The response I get is "Unable to negotiate with  port
> :
> no matching host key type found. Their offer: ssh-rsa,ssh-dss".
> Yesterday, I updated 'openssh' :
> 
>   Installed versions:  8.8_p1-r4^t([2021-12-25 06:12:24])
>    (X ssl -X509 -audit -debug -hpn -kerberos -ldns -libedit -livecd -
> pam -pie -scp -sctp -security-key -selinux -static -test -xmss
> ABI_MIPS="-n32" KERNEL="linux")
> 
> Occasionally, I have had a similar problem trying to do this,
> but ordinarily it has worked smoothly.
> 
> Does anyone have helpful suggestions how to get past the blockage ?
> 
Hi,

Have you looked at news 2021-10-08-openssh-rsa-sha1[1]


Could be related.

Regards,
Branko

[1]
https://gitweb.gentoo.org/data/gentoo-news.git/commit/?id=8dea6aa24c3ec9ee9a391fb602733c1a803a1ad1



[gentoo-user] ssh problem

2021-12-26 Thread Philip Webb
I want to login to a remote site  using 'ssh'.
The response I get is "Unable to negotiate with  port :
no matching host key type found. Their offer: ssh-rsa,ssh-dss".
Yesterday, I updated 'openssh' :

  Installed versions:  8.8_p1-r4^t([2021-12-25 06:12:24])
   (X ssl -X509 -audit -debug -hpn -kerberos -ldns -libedit -livecd -pam -pie 
-scp -sctp -security-key -selinux -static -test -xmss ABI_MIPS="-n32" 
KERNEL="linux")

Occasionally, I have had a similar problem trying to do this,
but ordinarily it has worked smoothly.

Does anyone have helpful suggestions how to get past the blockage ?

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