Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Advice] The Laws-of-Linux ... and other sundries of computing

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
donald
Debian Developer, Site Admin
Debian Developer, Site Admin
Posts: 1114
Joined: 2021-03-30 20:08
Has thanked: 189 times
Been thanked: 248 times

[Advice] The Laws-of-Linux ... and other sundries of computing

#1 Post by donald »

bbbhltz wrote: ↑2024-02-20 14:54
Whatever you choose, make sure it can be backed up or easily exported.
Typo perfectionish.


"The advice given above is all good, and just because a new message has appeared it does not mean that a problem has arisen, just that a new gremlin hiding in the hardware has been exposed." - FreewheelinFrank

User avatar
donald
Debian Developer, Site Admin
Debian Developer, Site Admin
Posts: 1114
Joined: 2021-03-30 20:08
Has thanked: 189 times
Been thanked: 248 times

Re: [Advice] The Laws-of-Linux ... and other sundries of computing

#2 Post by donald »

Sometimes we have old devices or net appliances that new standards have phased out, the problem is the devices are still usable somewhere or you need to get into one. This happens mostly with outdated systems that use ssh/sftp.

The error is the clue:

Code: Select all

Sun Mar 17 00:29:24)
{donald}@[computers.org]
{~}:$> ssh donald@10.10.10.10
Unable to negotiate with 10.10.10.10 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss
Change your key type to match what the system has:

Code: Select all

(Sun Mar 17 00:30:11)
{donald}@[computers.org]
{~}:$> ssh -o HostKeyAlgorithms=ssh-rsa,ssh-dss donald@10.10.10.10
The authenticity of host '10.10.10.10 (10.10.10.10)' can't be established.
RSA key fingerprint is SHA256:.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '10.10.10.10' (RSA) to the list of known hosts.
Tada!

Code: Select all

(donald@10.10.10.10) Password: 
Welcome the System Command Line Interface 
(c)Copyright 2006
donald@10.10.10.10 >
Typo perfectionish.


"The advice given above is all good, and just because a new message has appeared it does not mean that a problem has arisen, just that a new gremlin hiding in the hardware has been exposed." - FreewheelinFrank

CwF
Global Moderator
Global Moderator
Posts: 2741
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 45 times
Been thanked: 206 times

Re: [Advice] The Laws-of-Linux ... and other sundries of computing

#3 Post by CwF »

With infrequent use of some things that have been moved I sometimes hit this

Code: Select all

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:something.
Please contact your system administrator.
Add correct host key in /home/dom0/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/dom0/.ssh/known_hosts:2
  remove with:
  ssh-keygen -f "/home/dom0/.ssh/known_hosts" -R 10.10.10.67
ECDSA host key for 10.10.10.67 has changed and you have requested strict checking.
Host key verification failed.

User avatar
donald
Debian Developer, Site Admin
Debian Developer, Site Admin
Posts: 1114
Joined: 2021-03-30 20:08
Has thanked: 189 times
Been thanked: 248 times

Samba

#4 Post by donald »

mfsymlink allows for unix style symlinks on mounted SMB volumes. It is very useful for allowing unix style symlinks for Windows and Mac clients on the network.

/etc/fstab:

Code: Select all

 //SMBSERVER/SMBSHARE /MOUNTDIR cifs uid=$usernameOR$uid,gid=$groupnameOR$gid,credentials=/home/$USER/.credentials 0 0 
command line:

Code: Select all

 sudo  mount -t cifs -o credentials=/home/$USER/.credentials,dir_mode=0755,file_mode=0775,mfsymlinks,uid=$usernameOR$uid,gid=$groupnameOR$gid //SMBSERVER/SMBSHARE /MOUNTDIR

Proofs:
mount wrote:

Code: Select all

donald@computer ~ $ mount 
//overheadlamp/donald on /home/donald/lightbulb type cifs (rw,relatime,vers=3.1.1,cache=strict,username=donald,uid=1000,noforceuid,gid=1000,noforcegid,addr=10.90.90.95,file_mode=0775,dir_mode=0755,soft,nounix,serverino,mapposix,mfsymlinks,rsize=4194304,wsize=4194304,bsize=1048576,echo_interval=60,actimeo=1,closetimeo=1)
softlink wrote: donald@computer ~ $ ls -lst lightbulb/
total 4
4 lrwxrwxrwx 1 donald donald 34 Apr 13 16:14 directory -> /home/donald/directory
0 -rwxrwxr-x 1 donald donald 0 Apr 13 15:43 hello
0 -rwxrwxr-x 1 donald donald 0 Apr 13 15:29 hiee
0 -rwxrwxr-x 1 donald donald 0 Apr 13 15:29 hi
Typo perfectionish.


"The advice given above is all good, and just because a new message has appeared it does not mean that a problem has arisen, just that a new gremlin hiding in the hardware has been exposed." - FreewheelinFrank

Post Reply