| Author |
Message |
Nexus
Joined: 08 Jun 2012 Posts: 14
|
Posted: Thu 03 Jan 2013, 01:18 Post_subject:
Can't ssh to puppy machine- connection refused. <SOLVED> Sub_title: Turn off the firewall! |
|
Hi all,
I have two laptops, a new one running Mint and an ancient IBM Thinkpad running Puppy. I want to set up synergy on them so that I can use the old lappy as a second screen.
I've successfully set up IPs for both computers and I can ping both ways. I can ssh the Mint machine from the Puppy one, but not the other way round. The error I get is
ssh: connect to host 192.168.1.2 port 22: Connection refused
Does anyone know how to fix this?
Edited_time_total
|
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 7037 Location: qld
|
Posted: Thu 03 Jan 2013, 02:25 Post_subject:
|
|
Puppy by default doesn't ship with ssh server, just client. You can install it though. In Slacko, the infrastructure is already there, just install it from the PPM, (search for openssh) Make sure that /etc/init.d/sshd is set to executable and start the service. This will initiate your gpg key.
If not running Slacko then it should be in the PPM, or search this forum.
_________________ keep the faith .. 
|
|
Back to top
|
|
 |
Nexus
Joined: 08 Jun 2012 Posts: 14
|
Posted: Thu 03 Jan 2013, 03:02 Post_subject:
|
|
sshd is configured right and is running, but I still cannot connect. Anyway, wouldn't that mean I can't connect from Puppy to Mint, rather than the other way round?
|
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 7037 Location: qld
|
Posted: Thu 03 Jan 2013, 04:08 Post_subject:
|
|
The pup machine needs to be running sshd as it's the server if you want to log into it remotely. Just check your config file (/etc/ssh/sshd_config). something like this should do it: | Code: | # override default of no subsystems
Subsystem sftp /usr/libexec/sftp-server
# Example of overriding settings on a per-user basis
#Match User anoncvs
X11Forwarding yes
AllowTcpForwarding yes
X11DisplayOffset 10
X11UseLocalhost yes | Once that's good restart the service then see if you can log in from the remote Mint box.
BTW: just tested by ssh with my raspberry pi running slackware arm to one of my laptops running slacko-5.4. Also works in the other direction too.
_________________ keep the faith .. 
|
|
Back to top
|
|
 |
Nexus
Joined: 08 Jun 2012 Posts: 14
|
Posted: Thu 03 Jan 2013, 06:14 Post_subject:
|
|
GAH! Problem solved. It turned out to be the firewall on pup. I should have taken "connection refused" in its most literal sense.
|
|
Back to top
|
|
 |
zrdc28
Joined: 06 Jan 2013 Posts: 1
|
Posted: Sun 06 Jan 2013, 02:55 Post_subject:
|
|
| Nexus wrote: | | GAH! Problem solved. It turned out to be the firewall on pup. I should have taken "connection refused" in its most literal sense. |
How did you do it I have the same problem and have tried manipulating the firewall with no results. Please be gentle with me as I am new to puppy.
|
|
Back to top
|
|
 |
Master_wrong
Joined: 19 Mar 2008 Posts: 455
|
Posted: Tue 08 Jan 2013, 06:27 Post_subject:
|
|
setting the ssh server is easier if you first ssh your localhost.
check the pic in here
http://www.murga-linux.com/puppy/viewtopic.php?search_id=706405762&t=63523
_________________ Cluster-Pup v.2-Puppy Beowulf Cluster
http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199
|
|
Back to top
|
|
 |
|