Author Topic: Using SSH to connect to server  (Read 677 times)

0 Members and 1 Guest are viewing this topic.

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1647
  • Karma: 48
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Using SSH to connect to server
« on: April 09, 2012, 07:59:08 am »
I'm currently trying to get the hang of using SSH. I'll be using it a lot once the NAS is running on the network, but I'm having problems just using SSH to connect to other laptops within the home network.

I've installed openssh-server on my lappy, and I'm trying to connect to my brothers/mums laptop.

My static local IP is: 192.168.0.2
My brothers/mums' static local IP is: 192.168.0.3

I made an account on the other box, and the username is bally.

Whenever I run:

Code: [Select]
ssh -l bally karen-laptop.local

I get the return:

Quote
bally@bally-laptop $ ssh -l bally karen-laptop.local
ssh: connect to host karen-laptop.local port 22: Connection refused

Is it a case of having to port forward, port 22 on my router or is something playing up?
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1647
  • Karma: 48
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Using SSH to connect to server
« Reply #1 on: April 09, 2012, 10:23:13 am »
Forwarded port 22 in the routers firewall. Has to be the firewall rules for the laptops.

EDIT: Added port 22 to both boxes. Still not connecting. :(

Ran:

Code: [Select]
sudo ufw allow 22


EDIT 2: Doesn't work when firewall is disabled either.
« Last Edit: April 09, 2012, 10:35:16 am by BkS »
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 8868
  • Karma: 236
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Using SSH to connect to server
« Reply #2 on: April 09, 2012, 12:24:49 pm »
Surely the SSH server needs to be on your mothers PC, and you'd need to configure it to allow connections from your laptops IP address.

And I'd install hotssh on your laptop if I were you, then use that to connect to the SSH server on your moms PC.
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1647
  • Karma: 48
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Using SSH to connect to server
« Reply #3 on: April 09, 2012, 08:38:06 pm »
Right I'll give that a go.

P.S. Gnome-shell, why you so sexy? :(  Using Openbox by itself is pretty awesome.
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal