You are not logged in.

#1 2016-08-28 16:31:18

racerider94
Member
Registered: 2015-10-05
Posts: 9

[SOLVED]OpenSSH server don't work

I have a laptop whete archlinux is installed since 10 minuter and a desktop where I have arch since 1 year.
I don't know why but the openssh server don't work in my archlinux systems (the clients work perefectly I tested it with a raspberry).
The laptop ping perfectly the desktop and the desktop ping perfectly the laptop as well.
I've used that for install and "setup" the openssh

#pacman -S openssh
#systemctl start sshd
#systemctl enable sshd

some ideas?

Last edited by racerider94 (2016-08-28 23:21:04)

Offline

#2 2016-08-28 16:46:08

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED]OpenSSH server don't work

Relevant journalctl output?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2016-08-28 16:46:48

atomicbeef
Member
Registered: 2015-09-30
Posts: 98

Re: [SOLVED]OpenSSH server don't work

Hello racerider94,

You haven't provided us with enough details as to what your problem is. What exactly doesn't work about the SSH server?

Offline

#4 2016-08-28 16:58:15

racerider94
Member
Registered: 2015-10-05
Posts: 9

Re: [SOLVED]OpenSSH server don't work

if I try to connect my laptop to my desktop or my desktop to my laptop via ssh it go in outtime, I don't konw what is wrong in my pc... this is the status

$ sudo systemctl status sshd
● sshd.service - OpenSSH Daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset:
   Active: active (running) since dom 2016-08-28 18:37:01 CEST; 19min ago
 Main PID: 11841 (sshd)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/sshd.service
           └─11841 /usr/bin/sshd -D

ago 28 18:37:01 ArchFisso systemd[1]: Started OpenSSH Daemon.
ago 28 18:37:01 ArchFisso sshd[11841]: Server listening on 0.0.0.0 port 22.
ago 28 18:37:01 ArchFisso sshd[11841]: Server listening on :: port 22.
lines 1-11/11 (END)

Offline

#5 2016-08-28 17:22:04

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED]OpenSSH server don't work

Your sshd server appears to be running just fine ... do you have a firewall blocking anything?  What happens if you try connecting from the localhost, ie:

ssh localhost

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2016-08-28 17:41:25

racerider94
Member
Registered: 2015-10-05
Posts: 9

Re: [SOLVED]OpenSSH server don't work

it look work, but if I try open a ftp connection with my android it work... and my android phone have the same firewall rules of my desktop and laptop

Offline

#7 2016-08-28 17:53:48

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED]OpenSSH server don't work

I don't understand your last post.  FTP is not SSH, they run on different ports.  If you can connect from the localhost the next experiment is to try from another machine on the LAN.  If that works, and if you're trying to connect from your phone (3G or LTE) you'll need to forward the ssh port in your router to the machine running sshd.  If your phone is on wifi then it's no different than "another machine on the LAN" from this perspective.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#8 2016-08-28 18:06:56

racerider94
Member
Registered: 2015-10-05
Posts: 9

Re: [SOLVED]OpenSSH server don't work

i've open the port 22 on my router for the ip of my desktop, but if I try to connect my laptop to my desktop it don't work

Offline

#9 2016-08-28 18:18:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED]OpenSSH server don't work

Pass verbose flags and paste the full output.


Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2016-08-28 19:00:34

atomicbeef
Member
Registered: 2015-09-30
Posts: 98

Re: [SOLVED]OpenSSH server don't work

Since your firewall seems to be causing issues, could you post the rules of your laptop and desktop?

Offline

#11 2016-08-28 23:17:33

racerider94
Member
Registered: 2015-10-05
Posts: 9

Re: [SOLVED]OpenSSH server don't work

atomicbeef wrote:

Since your firewall seems to be causing issues, could you post the rules of your laptop and desktop?

you're right, was the firewall rules the cause!

Offline

#12 2016-08-28 23:20:43

atomicbeef
Member
Registered: 2015-09-30
Posts: 98

Re: [SOLVED]OpenSSH server don't work

Awesome that you fixed your problem! Make sure to edit the thread title and prepend "[SOLVED]" to it.

Offline

#13 2016-08-28 23:22:06

racerider94
Member
Registered: 2015-10-05
Posts: 9

Re: [SOLVED]OpenSSH server don't work

yes I will, thank you so much!

Offline

Board footer

Powered by FluxBB