SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-03-27 20:22:24

Jack_Keane
Member
Registered: 2013-03-26
Posts: 21

Network question... :/

Hi people...

Question:

If i can access my router trough 192.168.1.1 (i know user and pass) and i'm using wi-fi how can i access another PC that uses same internet trough LAN?

I don't know if you understand my, kinda bad with english... hmm

(quess it's kinda stupid question hmm)

Offline

Be excellent to each other!

#2 2013-03-27 20:29:46

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Network question... :/

Not stupid at all... It all depends on how you want to access the other PC

ssh is my preferred choice, along with sshfs in my network


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

#3 2013-03-27 20:32:16

Jack_Keane
Member
Registered: 2013-03-26
Posts: 21

Re: Network question... :/

Well, I thought 'bout it...

There are bunch of open ports:

ssh, telnet, http, ssl, tcp...

I'm not really good with SSH, if you maybe help me out or give me some good literature or advice it would be great! smile

Offline

#4 2013-03-27 20:33:59

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: Network question... :/

run

sudo ifconfig -a

on the other PC. Jot down the IP number.

You should now be able to ping the other PC from  the first one:

ping "IP number discovered in 1/"

(don't include the quotation marks)

To access the other PC by hostname, you have to edit /etc/hosts as root
Add an entry

IP-number    hostname

replace IP-number by the IP number of the second PC, and hostname by the hostname of the second PC.

This should allow you to ping  the other PC by hostname:

ping hostname

To connect to the other PC, you should have ssh-server running on the other PC.
To connect:

ssh user@hostname

should prompt you for the password of user on hostname.

There are methods to establish the connection without password.
Let us know if you want that, or check 'man ssh'

cheers,
xaos

Last edited by xaos52 (2013-03-27 20:36:23)

Offline

#5 2013-03-27 20:40:56

Jack_Keane
Member
Registered: 2013-03-26
Posts: 21

Re: Network question... :/

Nice setup... smile

Is there any way if I, for example, don't have any physical contact with that PC?

So, it will be something like this:

Laptop (WiFi) and PC (LAN) are using the same router.

I am on laptop...
I have access to that router trought 192.168.1.1
I know IP adress of that PC...

Offline

#6 2013-03-28 04:48:15

stolid
#! CrunchBanger
Registered: 2012-09-06
Posts: 206

Re: Network question... :/

Jack_Keane wrote:

Nice setup... smile

Is there any way if I, for example, don't have any physical contact with that PC?
So, it will be something like this:
Laptop (WiFi) and PC (LAN) are using the same router.

Yep. Wireless/wired is no problem, as long as they're on the same router. You just need the ip address of the computer you want to access, and a service to connect to (SSH, FTP, etc). What kind of access are you wanting exactly? Files?


Registered Linux User #555399
crunchbox:     Phenom II X6 1055T | 8GB RAM | OCZ Vertex 4 128GB | Radeon 7870XT | Win7 / #! 11 (i3 WM)
lambdacore:     4x Opteron 8431 | 16GB RAM | 2x1TB mirrored (ZFSoL) | Debian 7 (headless)
crunchtop:     Acer Aspire 1410 11.6" | 2GB RAM | Crucial M4 128GB | #! 11 (i3 WM)

Offline

#7 2013-03-28 12:36:58

Jack_Keane
Member
Registered: 2013-03-26
Posts: 21

Re: Network question... :/

Well primarly just and access and maybe some files for later. smile

Offline

#8 2013-03-28 13:14:26

brontosaurusrex
#! Red Menace
Registered: 2012-06-15
Posts: 1,586

Re: Network question... :/

ssh basics;

basically, to access the other machine;

ssh username@hostOrIP

to push a file to other machine;

scp file username@hostOrIP:/home/user/downloads/

(or you can make a script push like

scp "$@" username@hostOrIP:/home/user/downloads/

)

to mount via ssh, example;

sshfs -o nonempty bronto@kresnica:/home/bronto/ /home/ticho/mount/

system independent ssh file transfer client;
filezilla (win, mac, nix)

one way folder sync tool;
rsync

---
following the KISS principle.

Last edited by brontosaurusrex (2013-03-28 13:19:21)

Offline

#9 2013-03-28 13:27:33

Jack_Keane
Member
Registered: 2013-03-26
Posts: 21

Re: Network question... :/

Thanks for the replays guys, great answers.

Let you know how it all worked out. smile

Offline

#10 2013-03-28 17:12:20

Jack_Keane
Member
Registered: 2013-03-26
Posts: 21

Re: Network question... :/

I've tried connecting with SSH and it says : Connection timed out...

Offline

#11 2013-03-28 19:38:27

brontosaurusrex
#! Red Menace
Registered: 2012-06-15
Posts: 1,586

Re: Network question... :/

ssh server up and running? (service ssh status)
can you ping the machine?
does it work locally? (ssh user@localhost)
p.s. also in the future try to provide as little info as you can, otherwise it will be just too easy to solve this.

Last edited by brontosaurusrex (2013-03-28 19:39:09)

Offline

#12 2013-03-29 04:17:50

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,008
Website

Re: Network question... :/

If the machine has avahi-daemon running you can access it with the domain hostname.local so there's no need to determine the IP, which might change from session to session.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
#! forum moderator

Offline

#13 2013-03-29 21:35:42

seppalta
#! Member
Registered: 2012-05-04
Posts: 97
Website

Re: Network question... :/

For an ftp home network set-up recipe, see LXDE Guide;  for Samba, see LXDE Guide.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo