Re: ssh, where do the host come from

2025-05-17 Thread Greg Wooledge
On Sat, May 17, 2025 at 16:37:07 +0300, Henrik Ahlgren wrote: > and it is quite rare to SSH into localhost. It's not something I do on a daily basis, but I've done it several times, because it's an excellent way to test various things, such as changes to your dot files, sshd configuration, PAM con

Re: ssh, where do the host come from

2025-05-17 Thread Henrik Ahlgren
fxkl4...@protonmail.com writes: > and i also see it looks in ~/.ssh/known_hosts > i also have several i don't recognize You are probably wondering about the default IPv6 entries in /etc/hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters Of course, it

Re: ssh, where do the host come from

2025-05-16 Thread tomas
On Fri, May 16, 2025 at 09:02:03PM +, fxkl4...@protonmail.com wrote: > On Fri, 16 May 2025, to...@tuxteam.de wrote: [...] > thanks You are welcome :-) > i understand the no host hash in an industrial setting > but in a home network it seems unnecessary Well -- there are mixed cases. In my

Re: ssh, where do the host come from

2025-05-16 Thread fxkl47BF
On Fri, 16 May 2025, to...@tuxteam.de wrote: > On Fri, May 16, 2025 at 06:32:16PM +, fxkl4...@protonmail.com wrote: >> On Fri, 16 May 2025, to...@tuxteam.de wrote: > > [...] > >>> There is an (sshd, I think) option to change that. >> >> i see >> >> Alternately, hostnames may be stored in a has

Re: ssh, where do the host come from

2025-05-16 Thread Greg Wooledge
On Fri, May 16, 2025 at 16:39:15 +0100, Chris Green wrote: > fxkl4...@protonmail.com wrote: > > when i type ssh and two tabs i get a list of host > > numeric and names > > where do they come from > > Assuming you are using bash (or another shell that does TAB > completion) I think it's probably ju

Re: ssh, where do the host come from

2025-05-16 Thread tomas
On Fri, May 16, 2025 at 06:32:16PM +, fxkl4...@protonmail.com wrote: > On Fri, 16 May 2025, to...@tuxteam.de wrote: [...] > > There is an (sshd, I think) option to change that. > > i see > > Alternately, hostnames may be stored in a hashed form which hides host names > and addresses should

Re: ssh, where do the host come from

2025-05-16 Thread fxkl47BF
On Fri, 16 May 2025, to...@tuxteam.de wrote: > On Fri, May 16, 2025 at 04:09:10PM +, fxkl4...@protonmail.com wrote: > > [...] > >> as an aside >> in known_hosts there are many key fingerprints with no host identification >> is there a way to identify what host the fingerprint is for > > The fi

Re: ssh, where do the host come from

2025-05-16 Thread tomas
On Fri, May 16, 2025 at 04:09:10PM +, fxkl4...@protonmail.com wrote: [...] > as an aside > in known_hosts there are many key fingerprints with no host identification > is there a way to identify what host the fingerprint is for The file format is described in man 8 sshd. Those with "no host

Re: ssh, where do the host come from

2025-05-16 Thread fxkl47BF
On Fri, 16 May 2025, Charles Curley wrote: > On Fri, 16 May 2025 14:56:41 + > fxkl4...@protonmail.com wrote: > >> when i type ssh and two tabs i get a list of host >> numeric and names >> where do they come from >> > > If I type 'ssh' I get proposed tab completions of various > programs, all s

Re: ssh, where do the host come from

2025-05-16 Thread basti
Hello, first of all they come from ~/.ssh/config and there includes, if there. Or they come from /etc/hosts. Best Regards, On 16.05.25 16:56, fxkl4...@protonmail.com wrote: when i type ssh and two tabs i get a list of host numeric and names where do they come from

Re: ssh, where do the host come from

2025-05-16 Thread Chris Green
fxkl4...@protonmail.com wrote: > when i type ssh and two tabs i get a list of host > numeric and names > where do they come from Assuming you are using bash (or another shell that does TAB completion) I think it's probably just a list of file and directory names in the current directory. Try doi

Re: ssh, where do the host come from

2025-05-16 Thread Charles Curley
On Fri, 16 May 2025 14:56:41 + fxkl4...@protonmail.com wrote: > when i type ssh and two tabs i get a list of host > numeric and names > where do they come from > If I type 'ssh' I get proposed tab completions of various programs, all starting with ssh. If I type 'ssh' I get proposed IP addr

Re: ssh, where do the host come from

2025-05-16 Thread Dan Ritter
fxkl4...@protonmail.com wrote: > when i type ssh and two tabs i get a list of host > numeric and names > where do they come from Assuming that your shell is bash, it comes from the bash tab completion function, which has an optional package: bash-completion/stable,now 1:2.11-6 all programmabl

ssh, where do the host come from

2025-05-16 Thread fxkl47BF
when i type ssh and two tabs i get a list of host numeric and names where do they come from