Networking Forums

Networking Forums > Computer Networking > Linux Networking > mounting via ssh, and determining IP from MAC address remotely

Reply
Thread Tools Display Modes

mounting via ssh, and determining IP from MAC address remotely

 
 
Steve
Guest
Posts: n/a

 
      10-12-2003, 12:06 AM
Hello all, I have a couple of questions. First, is it possible to
mount a remote directory via ssh or ftp or the like? How would one do
this? I would like to mount my school account directory to my
machine, and this seems like the way to do it <?> Also, Since my
school uses DHCP to assign IP addresses, every time I reboot I get a
different IP, which is a little inconveinient since I have a
dual-boot, and reboot more than occasionally. I know the first three
numbers of my IP address never change, but the fourth one does. Is
there some way to determine the last number if I know my MAC address,
possibly through the ARP protocal?

-Steve
 
Reply With Quote
 
 
 
 
Creideiki
Guest
Posts: n/a

 
      10-14-2003, 04:23 PM
On 11 Oct 2003 17:06:03 -0700, Steve <(E-Mail Removed)> wrote:
> Hello all, I have a couple of questions. First, is it possible to
> mount a remote directory via ssh or ftp or the like? How would one do
> this? I would like to mount my school account directory to my
> machine, and this seems like the way to do it <?> Also, Since my
> school uses DHCP to assign IP addresses, every time I reboot I get a
> different IP, which is a little inconveinient since I have a
> dual-boot, and reboot more than occasionally. I know the first three
> numbers of my IP address never change, but the fourth one does. Is
> there some way to determine the last number if I know my MAC address,
> possibly through the ARP protocal?
>
> -Steve


If your school allowed one to NSF mount, and its sshd allowed port
forwarding you could. You would need the help of someone who had
administration privileges on the school machine to set up things
like /etc/exports. Thats assuming your school machine is a unix
system. If its a windows server, you'll have to learn SAMBA.

There are several methods for getting your IP address. ARP
wouldn't be easy.

You could run ifconfig about the proper interface and
pull it out of there.

I use the following line in my firewall setup

CURRENTIP=`ifconfig eth1 | perl -ne 'print "$1\n" if /inet addr[^ ]+) /'`

Depending on your DHCP client, the address it gets is usually
saved somewhere. I use dhcpxd, which I think isn't widely used
by most distributions. It saves the info in a file named
something like /etc/eth1.current

If you are extracting it to send over ssh to inform something
on the school side of your IP, and easy way to get the IP is to read
it from the environment variable that sshd sets, SSH_CLIENT.
That contains the IP and port for your home machine, and the
listen port of sshd.




 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remotely Detect MAC Address? nic Windows Networking 3 10-21-2006 09:23 AM
Determining IP address from MAC address ian.neal@gmail.com Linux Networking 6 06-16-2006 08:09 PM
Determining IP Address Neil Cameron Broadband 1 01-03-2006 03:38 PM
Every time my Linux PC gets new Ip address, I can't access remotely, how can I access?/ GS Linux Networking 7 10-16-2005 03:53 AM
Determining IP address? mpierce Linux Networking 6 01-01-2004 12:29 PM



1 2 3 4 5 6 7 8 9 10 11