Hardware
Hardware copied to clipboard
SSH into Dell OptiPlex 390 (Unit 2) using hostname results in connection refused
- Try running
ssh -vvv - Edit
/etc/hoststo add the reserved/static IP address for the Dell OptiPlex 390 (Unit 2):
192.168.0.139 DellOptiPlex390-1.lan DellOptiPlex390-1
127.0.0.1 localhost
# 127.0.1.1 DellOptiPlex390-1.lan DellOptiPlex390-1
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
/etc/hosts changes are applied immediately upon saving.
- Add an
/etc/dnsmasq.d/entry:- Ensure
/etc/dnsmasq.conf- if it exists - contains the line:conf-dir=/etc/dnsmasq.d - Create new file in
/etc/dnsmasq.d/with.confextentsion. All files in this directory are read bydnsmasq - Add the following to the file:
address=/DellOptiPlex390-1.lan/192.168.0.139, then save and close it - Run
$ pihole restartdns
- Ensure