laptop to desktop networking
Moderator: General Moderators
laptop to desktop networking
what software do I need to ssh between two machines? I'm trying to configure the easiest way to connect my laptop to my desktop and be able to ssh between the two.
If I have a laptop and a desktop not connected to a router... they are just connected to each other, then what address would I use to communicate between each other?
For example, right now when i want to connect to the desktop, i run:
ssh 192.168.2.3
vice-versa would be 192.168.2.4
However, that address is given by dhcp through the router. If i take the router out of the picture, what is the ssh command to get to the other comp?
For example, right now when i want to connect to the desktop, i run:
ssh 192.168.2.3
vice-versa would be 192.168.2.4
However, that address is given by dhcp through the router. If i take the router out of the picture, what is the ssh command to get to the other comp?
what kind of connection? simply two ethernet cards with a patch cable? In that case you can simply assign an ip to both network cards and add a route to the other (choosen) ip ...
With parallell and serial connections you can also use (plip and slip)..
In all situations you just get/assign two ip's and add a route to the other one.. And then you can simply connect with ssh <user>@<otherip>.
With parallell and serial connections you can also use (plip and slip)..
In all situations you just get/assign two ip's and add a route to the other one.. And then you can simply connect with ssh <user>@<otherip>.
correct, i simply have my laptop and desktop with ethernet adapters and a cat5 cable connecting them.
How do I "get/assign" an ip address?
something like....?
How do I "get/assign" an ip address?
something like....?
Code: Select all
sudo ifconfig 10.0.0.1 upMake sure it is a patched one (not straight).Todd_Z wrote:correct, i simply have my laptop and desktop with ethernet adapters and a cat5 cable connecting them.
That's right...Todd_Z wrote: How do I "get/assign" an ip address?
something like....? sudo ifconfig 10.0.0.1 up
And you'd add a route like:
route add 10.0.0.2 eth0
Desktop:
Laptop:
Desktop:
Pinging between the two hangs
SSH produces:
Code: Select all
ifconfig eth0 down
ifconfig eth0 10.0.0.1 upCode: Select all
ifconfig eth0 down
ifconfig eth0 10.0.0.2 up
route add 10.0.0.1 eth0Code: Select all
route add 10.0.0.2 eth0SSH produces:
Code: Select all
ssh: connect to host 10.0.0.1 port 22: No route to hostApparently ifconfig adds already a route for the ip, so the roud add is not needed...
And i should have used the term 'crossover cable' instead of patch cable.. http://en.wikipedia.org/wiki/Crossover_cable.
And i should have used the term 'crossover cable' instead of patch cable.. http://en.wikipedia.org/wiki/Crossover_cable.