LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-05-2019, 09:02 AM   #1
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Rep: Reputation: 68
Fedora-28 and SSH


I checked the Firewall on F28 and it is checked marked.
I'm trying to SSH to 192.168.0.102 which is a Raspberry Pi 3+.
I have enabled the SSH Server in Rasp-Pi.
I did change my Password in Rasp-Pi.

I get a error message at Fedora-28 PC saying "Permission denied, please try again."

From what I can tell that SSH is enabled at both ends.

From Rasp Pi to SSH 192.168.0.101/PC , I get a "connect to host 192.168.0.101 port 22: Connection refused"

I also did a systemctl start sshd.service on Fedora-28 PC.

What gives ? Like what is going on ?

Last edited by mickeyboa; 06-05-2019 at 09:19 AM.
 
Old 06-05-2019, 09:18 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
A few thoughts:

Did you try ssh -vvv? These options will help us confirm that it’s a password check that leads to the error message.
Are you sure you log on with the correct username?
Can you log on directly at the R-Pi using the same username and password?

I think you either mistyped the password, or logged on to the R-Pi as a different user, or the password change was not successful.
 
Old 06-05-2019, 09:19 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,309
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
When trying to connect from the Fedora-28 machine to the Raspberry Pi, are you using the right account?

Code:
ssh -l pi 192.168.0.102
When connecting from the Raspberry Pi to the Fedora-28 machine, have you opened port 22 in the firewall on the Fedora-28 machine?
 
Old 06-05-2019, 09:20 AM   #4
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Quote:
Originally Posted by berndbausch View Post
A few thoughts:

Did you try ssh -vvv? These options will help us confirm that it’s a password check that leads to the error message.
Are you sure you log on with the correct username?
Can you log on directly at the R-Pi using the same username and password?

I think you either mistyped the password, or logged on to the R-Pi as a different user, or the password change was not successful.
Or SSH is configured to want key files instead of password...that's the issue I usually have is having configured ssh to require keys.
 
Old 06-05-2019, 09:30 AM   #5
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Original Poster
Rep: Reputation: 68
ssh -l pi 192.168.0.102

Did the TRICK, what does the -l do ?

I'm connected to Pi SSH now, Thanks much
 
Old 06-05-2019, 09:36 AM   #6
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
From the manpage:

Quote:
Originally Posted by manpage
-l login_name
Specifies the user to log in as on the remote machine. This also
may be specified on a per-host basis in the configuration file.
 
1 members found this post helpful.
Old 06-05-2019, 09:49 AM   #7
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Original Poster
Rep: Reputation: 68
I forgot to add the Rasp-Pi is going to be installed up on a 40ft Antenna pole, the Pi is getting it's power from a 100ft Cat6 ethernet cable, POE.
So I have to talk to the Pi 40ft up from a Fedora-28 PC terminal.

The IOT (internet of Things)
 
Old 06-18-2019, 09:51 AM   #8
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Original Poster
Rep: Reputation: 68
Unsolved:

on a different Computer:

ssh -vvv 192.168.0.102

Error message;

Athentications that can contiune: public,gssapi=keyex,,gssapi-with-mickey,password

Permission denied,please try again pi@192,168.0.102's password:

The password I'm typing in is correct and in lower case.

What's up ?
 
Old 06-18-2019, 04:22 PM   #9
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Original Poster
Rep: Reputation: 68
running ssh -vvv, it runs until it gets to connect 192.168.10.10 and it Hangs up there and then Times Out.

[root@mickey mickey]# ssh -vvv 192.168.10.10
OpenSSH_7.8p1, OpenSSL 1.1.0i-fips 14 Aug 2018
debug1: Reading configuration data /etc/ssh/ssh_config
debug3: /etc/ssh/ssh_config line 52: Including file /etc/ssh/ssh_config.d/05-redhat.conf depth 0
debug1: Reading configuration data /etc/ssh/ssh_config.d/05-redhat.conf
debug3: /etc/ssh/ssh_config.d/05-redhat.conf line 2: Including file /etc/crypto-policies/back-ends/openssh.config depth 1
debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config
debug3: gss kex names ok: [gss-gex-sha1-,gss-group14-sha1-]
debug3: kex names ok: [curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1]
debug1: /etc/ssh/ssh_config.d/05-redhat.conf line 8: Applying options for *
debug2: resolve_canonicalize: hostname 192.168.10.10 is address
debug2: ssh_connect_direct
debug1: Connecting to 192.168.10.10 [192.168.10.10] port 22.

At this point ssh just hangs and Timesout.

Last edited by mickeyboa; 06-19-2019 at 08:17 AM.
 
Old 06-18-2019, 05:53 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Is your Pi configured with a static IP or using a DHCP address reservation?

Code:
ssh -vvv 192.168.10.10
Did you change subnets or a typo??

From #5 which worked.
ssh -l pi 192.168.0.102

Curious as to the purpose of your Pi on a 40 foot antenna pole.
 
Old 06-19-2019, 08:28 AM   #11
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Original Poster
Rep: Reputation: 68
Fedora 28 is 192.169.0.1
Pi is 192.169.10.10

both are using dhcp from a Router, I do ifconfig to check Fedora's IP, the Pi is setup to run on 192.168.10.10 only

From Pi to Fedora ssh 102.168.0.1 I get a ssh connection
I Exit from the Pi.
From Fedor28 to Pi I cannot get a connection, the results are in my previous post.

Up the 40" pole a Rak-Gateway (or LoRa gateway will connect to other gateway's),
The World !! , Have you heard of the term IOT (Internet of Things)
Which will connect finally to https://www.thethingsnetwork.org/

Fedora-28 PC Terminal will help me to Edit and Setup the Pi and RAK-Gateway module in a water proof box, to a diapole antenna which is 6' tall, The Pole is 40',You have to have the Antenna high to get over trees and houses,line of sight to another gateway in your local area, the Pi and Gateway Module board is powered by POE (Power over Ethernet),The Pi will also communicate with the TheThingsNetwork through Ethernet.
Here is Swiss guy(Guy with a Swiss Accent, he speaks very good English) that built a gateway.https://www.youtube.com/watch?v=wnHwWGqUUyc&t=519s ,The gateway Modules work on different Freq. Europe 868mhz USA 915mhz other countries have there own Freq.
 
Old 06-19-2019, 08:56 AM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Different subnets. How is the network configured between the two computers?
 
Old 06-19-2019, 09:10 AM   #13
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Original Poster
Rep: Reputation: 68
Michaelk would you please define what a subnet is and how I can fix it . I use a Router between the two computers.

Pi can ssh to Fedora no problem, would that not solve the subnet problem ?

Thanks much for your help.

Last edited by mickeyboa; 06-19-2019 at 09:12 AM.
 
Old 06-19-2019, 09:38 AM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
How is everything wired? Which device is connected to the LAN and which to the WAN side.

The typical home router uses NAT so if Fedora is on the WAN side you need to forward ssh traffic in the router to the Pi.
 
Old 06-19-2019, 09:52 AM   #15
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Original Poster
Rep: Reputation: 68
Lan is:
fedora 192.168.0.102
Pi 192.168.10.10
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to log ssh activity in /var/log/ssh/ssh*.log MrUmunhum Linux - Server 3 11-02-2011 02:25 AM
Fedora 10/unable to ssh out from box to remote host (SSH within LAN ok) huskeypm Linux - Networking 3 04-14-2009 07:37 PM
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
setting up an ssh soxy or local ssh tunnel from within an ssh soxy Mangenius Linux - Networking 0 03-05-2007 03:15 PM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration