Salut,
Je cherche à faire un truc « débile » qui serait ; qu’en j’écris que çà pointe sur
.ws
root@srv-fr:/ # alias mydomain="ipv10.net"
root@srv-fr:/ # ssh mydomain
ssh: Could not resolve hostname mydomain: Name or service not known
root@srv-fr:/ # ssh $(mydomain)
-bash: ipv10.net : commande introuvable
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
[-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
[-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
[-i identity_file] [-J [user@]host[:port]] [-L address]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-Q query_option] [-R address] [-S ctl_path] [-W host:port]
[-w local_tun[:remote_tun]] destination [command [argument ...]]
Comment-faire « pour créer » un « mot » qui soit accessible dans le système ?
Ce retour de commande est normal puisque alias sert à créer des alias de commandes :
root@srv-fr:/ # alias mydomain=`echo $(echo "ipv10.net")`
root@srv-fr:/ # echo $(mydomain)
-bash: ipv10.net : commande introuvable
Quelqu’un pourrait m’aider.
Plutôt comme cela le truc débile :
ssh mydomain
Pour accéder, lancer la commande :
ssh ipv10.net
Merci,
Romain.
Parce que le temps qu’ils nous fasse des claviers « emojis » - des tous les émoticons du monde (le prix déjà) - ce n’est pas demain la veille !
Searching Google : Keyboard projection laser + hack for emojis
Full Emoji List : https://unicode.org/emoji/charts-14.0/full-emoji-list.html
J’ai réussis çà, mais çà m’oblige à mettre en dur les IP dans le fichier /etc/hosts
:
root@srv-fr:/ # cat /etc/hosts
[...]
158.69.126.137 ⛔🔜 ⛔🔜.idn
2607:5300:60:9389::1 ⛔🔜 ⛔🔜.idn
root@srv-fr:/ # ssh ⛔🔜
ignoring bad CNAME "\342\233\224\360\237\224\234" for host "\342\233\224\360\237\224\234": domain name "\342\233\224\360\237\224\234" starts with invalid character
The authenticity of host '⛔🔜 (2607:5300:60:9389::1)' can't be established.
ED25519 key fingerprint is SHA256:XOnWuLqF0rNSrBRQprfas7nN9/6vVuteNqNugZwar7E.
This host key is known by the following other names/addresses:
~/.ssh/known_hosts:12: [hashed name]
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '\342\233\224\360\237\224\234' (ED25519) to the list of known hosts.
Linux lab3w 5.4.203-1-pve #1 SMP PVE 5.4.203-1 (Fri, 26 Aug 2022 14:43:35 +0200) x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Sep 26 09:23:05 2025 from 2a01:cb1d:813:4a00:bee:eeff:ca:feee
root@srv-ca:~ #