when i type ssh and two tabs i get a list of host
numeric and names
where do they come from
when i type ssh and two tabs i get a list of host
numeric and names
where do they come from
when i type ssh and two tabs i get a list of host
numeric and names
where do they come from
when i type ssh and two tabs i get a list of host
numeric and names
where do they come from
On Fri, 16 May 2025 14:56:41 +0000
[email protected] 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<tab><tab>' I get proposed tab completions of various
programs, all starting with ssh.
If I type 'ssh<space><tab><tab>' I get proposed IP addresses and host
names as arguments to ssh. The seem to be hosts on my local network,
hosts I have in ~/.ssh/config>, and some I don't recognize.
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
On Fri, May 16, 2025 at 04:09:10PM +0000, [email protected] 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 identification" most probably just have a hashed host name: the idea is that an attacker who gets access to your user account doesn't get a neat list of which hosts to try next.
There is an (sshd, I think) option to change that.
[email protected] 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 doing the same in a different directory.
On Fri, 16 May 2025, [email protected] wrote:
above negation or wildcard operators may be applied.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 the file's contents be disclosed. Hashed hostnames start with a ‘|’ character. Only one hashed hostname may appear on a single line and none of the
i don't see how to change it
On Fri, May 16, 2025 at 06:32:16PM +0000, [email protected] wrote:above negation or wildcard operators may be applied.
On Fri, 16 May 2025, [email protected] 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 the file's contents be disclosed. Hashed hostnames start with a ‘|’ character. Only one hashed hostname may appear on a single line and none of the
i don't see how to change it
Ah, no,, sorry. I lied to you, it's in the ssh_config (/etc/ssh/ssh_config). Here's the extract from man ssh_config:
HashKnownHosts
Indicates that ssh(1) should hash host names and ad‐
dresses when they are added to ~/.ssh/known_hosts.
These hashed names may be used normally by ssh(1) and
sshd(8), but they do not visually reveal identifying
information if the file's contents are disclosed.
The default is no. Note that existing names and ad‐
dresses in known hosts files will not be converted
automatically, but may be manually hashed using
ssh-keygen(1). Use of this option may break facili‐
ties such as tab-completion that rely on being able
to read unhashed host names from ~/.ssh/known_hosts.
...and the default in Debian is:
tomas@caliban:~$ grep -i hash /etc/ssh/ssh_config
HashKnownHosts yes
...so there you are :)
On Fri, 16 May 2025, [email protected] wrote:
thanks
i understand the no host hash in an industrial setting
but in a home network it seems unnecessary
and i also see it looks in ~/.ssh/known_hosts
i also have several i don't recognize
and it is quite rare to SSH into localhost.
On Fri, May 16, 2025 at 16:39:15 +0100, Chris Green wrote:
[email protected] 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 doing the same in a different directory.
No, it's almost certainly programmable completion from the bash-completion package.
It's installed and used by default in Debian.
It may be installed, but I've always had to use:
[ -f /etc/bash_completion ] && . /etc/bash_completion # Use bash-completion if available
in order for it to work:
$ grep -A8 'bash completion' /etc/bash.bashrc
# enable bash completion in interactive shells
#if ! shopt -oq posix; then
# if [ -f /usr/share/bash-completion/bash_completion ]; then
# . /usr/share/bash-completion/bash_completion
# elif [ -f /etc/bash_completion ]; then
# . /etc/bash_completion
# fi
#fi
$
What file does in Linux use to the store network address in?
What file does in Linux use to the store network address in?
If you mean "what file contains the IP address and hostname of my own server?": It depends whether you use NetworkManager to configure networking or the older style.
In the older style the config file goes in /etc/sysconfig/network-scripts
and contains the NIC name as part of the filename. With NetworkManager the file has a different format and name and goes in /etc/NetworkManager/connection-scripts.
There are command-line tools to configure NetworkManager-style like nmtui
and nmcli if you reject GUIs ;-) You may need to install one of them if not already.
On Sun, May 18, 2025, 9:16 AM <[email protected]> wrote:
On Sun, May 18, 2025 at 09:42:45AM -0400, COMCAST wrote:If you mean "what file contains the IP address and hostname of my own server?": It depends whether you use NetworkManager to configure networking or the older style.
What file does in Linux use to the store network address in?
In the older style the config file goes in /etc/sysconfig/network-scripts
and contains the NIC name as part of the filename. With NetworkManager the file has a different format and name and goes in /etc/NetworkManager/connection-scripts.
There are command-line tools to configure NetworkManager-style like nmtui
and nmcli if you reject GUIs ;-) You may need to install one of them if not already.
Whose network address? And: what do you mean by "store"?
Could you please explain what you are trying to do?
Cheers
--
t
What file does in Linux use to the store network address in?
Close bu no cooky. My install of Debian docent even have those files.
In the older style the config file goes in
/etc/sysconfig/network-scripts and contains the NIC name as part of
the filename. With NetworkManager the file has a different format and
name and goes in /etc/NetworkManager/connection-scripts.
Please use interleaved posting style rather than top-posting style:
https://en.wikipedia.org/wiki/Posting_style
On 5/18/25 06:42, COMCAST wrote:
What file does in Linux use to the store network address in?
On 5/19/25 11:11, COMCAST wrote:
Close bu no cooky. My install of Debian docent even have those files.
Please proofread your posts and use the spell checker in your mail
client.
Your posts indicate that you are experiencing the X-Y Problem:
https://en.wikipedia.org/wiki/X_Y_problem
Computers, networks, Unix, Linux, and Debian are vast subjects. It is difficult to know where to start. I found "Learning the Unix
Operating System" to be useful. I suggest that you buy and read it now:
https://www.oreilly.com/library/view/learning-the-unix/0596002610/
It appears that you also administer your computer. "UNIX and Linux
System Administration Handbook" is useful. I recommend that you make
it a long-term goal:
https://www.oreilly.com/library/view/unix-and-linux/9780134278308/
When posting to a mailing list, the Subject line is crucial. Yours is ambiguous. "Debian network settings" would have been better.
It is best to begin your post by providing context -- the make and
model of your computer, what processor it has, how much memory it has,
the sizes and types of storage devices it has, what operating
system(s) are installed on it, the location(s) where the computer is
used, the network(s) it connects to, and the purposes for which the
computer is used.
Then state your question. Provide relevant information. State what research you have done and what you found.
The English language is ambiguous. Terminal sessions are unambiguous.
Use the terminal and commands when possible to provide information in
your posts. For example, to identify your Debian installation:
2025-05-19 14:52:58 dpchrist@laalaa ~
$ cat /etc/debian_version ; uname -a
11.11
Linux laalaa 5.10.0-34-amd64 #1 SMP Debian 5.10.234-1 (2025-02-24)
x86_64 GNU/Linux
When responding to a reply, cite and include the relevant portion, and
then place your response immediately afterwards. For example:
On 5/18/25 08:35, Nicholas Geovanis wrote:
In the older style the config file goes in
/etc/sysconfig/network-scripts and contains the NIC name as part of
the filename. With NetworkManager the file has a different format and
name and goes in /etc/NetworkManager/connection-scripts.
Those files do not exist on my computer:
2025-05-19 15:38:42 dpchrist@laalaa ~
$ ls /etc/sysconfig/network-scripts
ls: cannot access '/etc/sysconfig/network-scripts': No such file or
directory
2025-05-19 15:41:40 dpchrist@laalaa ~
$ ls /etc/NetworkManager/connection-scripts
ls: cannot access '/etc/NetworkManager/connection-scripts': No such
file or directory
Please respond to the replies that others give. If you do not
understand a comment, question, or suggestion, or know the command(s)
to do so, state that and ask for clarification.
David
That's a lot of drivel... or are you just wishing to see what you can publish?
That's a lot of drivel... or are you just wishing to see what you can publish?
That's a lot of drivel... or are you just wishing to see what you can publish?
When posting to a mailing list, the Subject line is crucial. Yours isNo, it is not,
and it should not contain essential information because
hardly anyone ever gives it more than a rapid glance.
On 2025-05-19, David Christensen <[email protected]> wrote:
When posting to a mailing list, the Subject line is crucial. Yours is
No, it is not, and it should not contain essential information because
hardly anyone ever gives it more than a rapid glance.
/var/lib/NetworkManager/internal-05c32b5f-6a7e-4b7b-a858-a19fd3d6a5a3-wlo1.lease
/var/lib/NetworkManager/internal-4eb92ca8-bc1c-3546-9ba9-cfd0dc4fda00-enp0s25.lease
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 00:09:29 |
| Calls: | 12,097 |
| Calls today: | 5 |
| Files: | 15,003 |
| Messages: | 6,517,857 |