View previous topic :: View next topic |
Author |
Message |
ONEEYEMAN Advocate
Joined: 01 Mar 2005 Posts: 3612
|
Posted: Fri Jun 04, 2021 12:32 am Post subject: [SOLVED]: Remote access during the install |
|
|
Hi, ALL,
What do I need to do in order to allow the remote access during the install?
I verified that sshd is running but trying to run:
ssh root@192.168.1.209
gives:
Code: |
Igors-MacBook-Air:Debug igorkorot$ ssh root@192.168.1.209
ssh: connect to host 192.168.1.209 port 22: Connection refused
Igors-MacBook-Air:Debug igorkorot$
|
Is this coming from my router? Or the box is just refusing connection?
Thank you.
Last edited by ONEEYEMAN on Sat Jun 05, 2021 2:21 am; edited 1 time in total |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2965 Location: Edge of marsh USA
|
Posted: Fri Jun 04, 2021 2:40 am Post subject: |
|
|
Probably a setting in /etc/init.d/sshd_config
Especially see: #PermitRootLogin prohibit-password which is the default.
See "man sshd_config"
Added: actually, the prohibit-password should let root try to login but will always fail. Check port, or any other blockers. I agree, the error message is from the host. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Fri Jun 04, 2021 2:44 am Post subject: |
|
|
figueroa wrote: | Probably a setting in /etc/init.d/sshd_config
Especially see: #PermitRootLogin prohibit-password which is the default.
See "man sshd_config"
Added: actually, the prohibit-password should let root try to login but will always fail. Check port, or any other blockers. |
In this case the connection is not refused, login prompt is given, but login fails. _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 437
|
|
Back to top |
|
|
ONEEYEMAN Advocate
Joined: 01 Mar 2005 Posts: 3612
|
Posted: Fri Jun 04, 2021 4:36 am Post subject: |
|
|
Hi,
Please check here:
http://dpaste.com/56LSFY2XM
http://dpaste.com/64BBVWKYU
Thank you.
I'm actually more interested in scp, but wanted to check the ssh first as one depend on the other.
So I tried it and of course got failure:
Code: |
Igors-MacBook-Air:Documents igorkorot$ scp ./kernel-config.txt igor@192.168.1.209:/home/igor
ssh: connect to host 192.168.1.209 port 22: Connection refused
lost connection
Igors-MacBook-Air:Documents igorkorot$
|
Thank you. |
|
Back to top |
|
|
C5ace Guru
Joined: 23 Dec 2013 Posts: 474 Location: Brisbane, Australia
|
Posted: Fri Jun 04, 2021 11:46 am Post subject: |
|
|
ONEEYEMAN wrote: | Hi,
Please check here:
http://dpaste.com/56LSFY2XM
http://dpaste.com/64BBVWKYU
Thank you.
I'm actually more interested in scp, but wanted to check the ssh first as one depend on the other.
So I tried it and of course got failure:
Code: |
Igors-MacBook-Air:Documents igorkorot$ scp ./kernel-config.txt igor@192.168.1.209:/home/igor
ssh: connect to host 192.168.1.209 port 22: Connection refused
lost connection
Igors-MacBook-Air:Documents igorkorot$
|
Thank you. |
#LoginGraceTime 2m
#PermitRootLogin prohibit-password
PermitRootLogin yes <------ ADD
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10 _________________ Observation after 30 years working with computers:
All software has known and unknown bugs and vulnerabilities. Especially software written in complex, unstable and object oriented languages such as perl, python, C++, C#, Rust and the likes. |
|
Back to top |
|
|
ONEEYEMAN Advocate
Joined: 01 Mar 2005 Posts: 3612
|
Posted: Fri Jun 04, 2021 1:33 pm Post subject: |
|
|
Hi,
I made this change but still get the same error trying the scp command either with my newly created user or root
Should I not be in a chrooted environment?
Thank you. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Fri Jun 04, 2021 2:49 pm Post subject: |
|
|
ONEEYEMAN wrote: | Hi,
I made this change but still get the same error trying the scp command either with my newly created user or root |
Yes, because for this option to come into play you need to connect, but your connection fails. You need to use common sense, please.
Quote: | It comes from 192.168.1.209, the machine at this address either has no SSHD running on standard port 22 or firewall is blocking port 22. |
I'll try in more words. You get connection refused because:
1. You are trying to connect to a wrong box;
2. SSHD is not running or is configured not to listen for incoming connections on port 22;
3. There is a firewall blocking port 22.
Quote: | Should I not be in a chrooted environment? |
Of course not. You connect to host and then chroot if you need to. What gave you idea you can open ports on the host system from chroot? Chroot is not a virtual machine with its own ports.
What is it, ONEEYEMAN? You know only root can open ports under 1024, you know being root in chroot does not mean you have root rights in host. What stops you using your knowledge? _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
ONEEYEMAN Advocate
Joined: 01 Mar 2005 Posts: 3612
|
Posted: Sat Jun 05, 2021 2:20 am Post subject: |
|
|
Thank you. |
|
Back to top |
|
|
|