Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]: Remote access during the install
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3612

PostPosted: Fri Jun 04, 2021 12:32 am    Post subject: [SOLVED]: Remote access during the install Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Fri Jun 04, 2021 12:43 am    Post subject: Reply with 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.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2965
Location: Edge of marsh USA

PostPosted: Fri Jun 04, 2021 2:40 am    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Fri Jun 04, 2021 2:44 am    Post subject: Reply with quote

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
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 437

PostPosted: Fri Jun 04, 2021 4:23 am    Post subject: Reply with quote

Follow the handbook and don't skip creating the user account and its password. The ssh daemon needs to be started too. I have been doing local installs sshed in from another computer for a while now and like it. A terminal in linux or macos, or putty in winders gets the job done.
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3612

PostPosted: Fri Jun 04, 2021 4:36 am    Post subject: Reply with quote

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
View user's profile Send private message
C5ace
Guru
Guru


Joined: 23 Dec 2013
Posts: 474
Location: Brisbane, Australia

PostPosted: Fri Jun 04, 2021 11:46 am    Post subject: Reply with quote

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
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3612

PostPosted: Fri Jun 04, 2021 1:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Fri Jun 04, 2021 2:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3612

PostPosted: Sat Jun 05, 2021 2:20 am    Post subject: Reply with quote

Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum