Biomicro Center Public Storage Server Connection "Command line using an SMB mount"
|SMB or Cifs mount from a UNIX System
BMC-Pub1 can accessed as a "mounted drive from a UNIX system". To do this:
Create a mount point on the system * Please ssh into the system * Move to the "\mnt" on the filesystem * Create a directory as a mount point: type "mkdir bmc-pub1"
%/mnt/bmc-pub1 should appear The "mount command" The mount command requires the location the Windows Share. The mount point provides access as this user. It is recommended to delete after use. mount -t cifs -o username=bozo,password=clown //bmc-pub1/yoursharename /mnt/bmc-pub1 <enter> If there is no error message the command mounted the drive.
There is a command to check the status of all mounted drives. It is known as the "df-h"
An example might be df-h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 72G 2.3G 66G 4% / /dev/hda1 99M 9.0M 85M 10% /boot none 506M 0 506M 0% /dev/shm //bmc-pub1/biomicro 1008G 52G 957G 6% /mnt/bmc-pub1
To delete or remove the mount point At the / location Type umount -f /mnt/bmc-pub1 <enter>
Biomicro Center Public Storage Server Connection "SCP EXAMPLE"
|Command line file copy from system to BMC-PUB1 UNIX System
You too can do a command line copy of a "file or folder" using SSH. It is known as SCP. Required:
*User account on the system *Knowing beforehand the location you have the permissions to access.
Reference: http://www.hypexr.org/linux_scp_help.php Provides many examples.
This example we will copy a file:
Move into the directory of the file you wish to copy via ssh * Type in "ls -al" to view the contents of the directory.
* scp nameoffile username@host:/locationofremotecopy
* scp mit-krb-config-1.0-3.noarch.rpm firstname.lastname@example.org:/data/biomicro
*The authenticity of host 'bmc-pub1.mit.edu (184.108.40.206)' can't be established. RSA key fingerprint is 15:e5:de:a3:dc:8a:02:38:bb:a9:61:7b:c4:63:d0:42. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'bmc-pub1.mit.edu,220.127.116.11' (RSA) to the list of known hosts. email@example.com's password: <enter your password on the remote system>
*mit-krb-config-1.0-3.noarch.rpm 100% 4433 4.3KB/s 00:00 <transfer>