ssh network interface

Hi all,

From installation my standard gigabit realtek card was installed and running perfectly but my wifi card was not. After some searching in this community it got some tut's and it appeared to be a peace of cake to get it running and configured (although the recommended 'wifi-radar' gave me headache while Debian's standard network manager worked fine right away).

All this is nice but i can't get ssh running properly with my wifi-card. the ssh server ran perfect before installation and still does it's job after, but it will only listen to my gigabit card.

Anyone got a tip how to get the deamon listening to both network interfaces? or at least to let me configure wich one, if only one is possible?

Kind regards,

Sjors

ps. while searching for my interface i came across /etc/network/interfaces. i was stunned to see that my wireless key was stored unencrypted in this file and chmod 644 so any usr can read this... can't i store this encrypted?

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

ssh + interface

It sounds like the default route is still set up through the wired lan interface. If you want the traffic to go through the wireless, you have to delete the old route, and set up a new one through the wireless interface. Doing a man route will show examples of using the /sbin/route command.

You should to able to change the permissions on interfaces to 600. The ifup and ifdown programs that read the file run as root anyway. Maybe those permissions are there for use of some gui programs, and are really a bad idea.

ssh + interface

hmmm i think i don't quit understand route.

route -n gives me:

route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 -- 0.0.0.0 -- 255.255.255.0 -- U -- 0 -- 0 -- 0 --eth2
10.10.10.0 -- 0.0.0.0 -- 255.255.255.0 -- U -- 0 -- 0 -- 0 --eth1
0.0.0.0 -- 10.0.0.138 -- 0.0.0.0 -- UG -- 0 -- 0 -- 0 --eth2
0.0.0.0 -- 10.10.10.120 -- 0.0.0.0 -- UG -- 0 -- 0 -- 0 --eth1

this means that when i enter 10.0.0.2 in putty it wil connect thru eth2 and this is not working properly... but my samba server is... so if i change that route i'm affraid of messing other things up... or am i wrong?

sjors

ssh + interface

hmm, found the problem: while using putty on a xp machine i used several profiles (payed web server, friends server etc). Since the standard selection in putty is Telnet instead of SSH (port 23 i.s. of 22) i couldn't connect to my debian box since i typed in the ip manually each time without changing the Telnet/ssh option... stupid me... took me several hours to figure that one out :(

but thanks anyway for your time.

sjors

Syndicate content