Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

transfer data to harden server ?? Unix Admin, please help

Status
Not open for further replies.

hendnov

Technical User
Feb 27, 2006
73
AU
Hi guys,

I'm trying to transfer data from one unix server to harden server,

I couldnt transfer using ftp, is there anyway that I can transfer file to this harden server?

THX GUYS
 
Tape, rcp? Which OS exactly? More info. required please.

When one door closes another one bangs shut too.
 
OS? from unix server to unix harden server, we're using solaris. THX
 
As I say, do you have a tape drive available on both machines?

When one door closes another one bangs shut too.
 
It all depends on how it's been hardened. Our standard is to replace telnet/ftp/scp/rsh with ssh/sftp/scp. Assuming you can actually log in over the network then at least ssh myst be running. If so is sftp?

If sftp is not running but ssh is the following works
Code:
cat localfile | ssh r_user@r_server "cat > remote file"
If the server has been hardened so that there is no remote access then you need some physical medium (tape, CD, memory stick, etc) but you imply that this is not an option. If this is so then you're down to re-keying the data!

Columb Healy
 
You could possible transfer on floppy disks using tar or cpio, or possibly email the file, or split it up and email.
How much data are we talking about?
 
USBkey?

1. Insert the USB key in one of the USB slots.
2. mkdir /rmdisk
3. /etc/init.d/volmgt stop
4. /etc/init.d/volmgt start
5. mount | grep rmdisk

It should be there.

If the above doesn't work please try

1. /etc/init.d/volmgt stop
2. iostat -En
* Look for your USB device.
3. mount -F pcfs /dev/dsk/c2t0d0p0:c /mnt
* mount -F pcfs /dev/dsk/c1t0d0p0:c /mnt


Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."

 
Hi guys, thx for your input.

Hi columb, it works using sftp. But here I'm talking about transfering 1GB data.
my harden server has only ssh remote access.

Question :
Just wondering should I put something like "bin" in sftp if I want to transfer bigger data to avoid checksum error ? or I dont have to. Because in sftp they dont recognize bin command. I transfered the file successfully because I did for the small data.


and mrn, I've got big questions for you. There is no "volmgt" in my /etc/init.d/ here's the list in my /etc/init.d
Code:
ANNOUNCE                   mqm
MOUNTFSYS                  ndd.settings
PRESERVE                   ndd.settings.BAK121005
README                     nddconfig
RMTMPFILES                 network
acctadm                    nfs.client
audit                      nfs.server
autofs                     notify
autoinstall                nscd
buildmnttab                openssh
cachefs.daemon             password
cachefs.daemon.old         patrol
cachefs.root               picld
cacheos                    prngd
cacheos.finish             rational
coreadm                    rootusr
cron                       rpc
devfsadm                   samba.server
devfsadm.old               savecore
devlinks                   sendmail
dhcpagent                  sendmail.old
drvconfig                  setup_avail
httpd                      sf880dr
httpengine.sh              standardmounts
inetinit                   staticroutes
inetsvc                    sys_chk
inetsvc.ORIG.200212181323  sysetup
initpcihpc                 sysid.net
initpcihpc.old             sysid.sys
initusb                    sysload
iwod                       syslog
keymap                     syslog.ORIG.1218021323
ldap.client                sysup
ldap.client.old            ufs_quota
lvm.init                   umask.sh
lvm.sync                   utmpd
mcsagent.sh                weblogic
mkdtab                     xntpd
$ /etc/init.d/volmgt stop
ksh: /etc/init.d/volmgt:  not found

and I couldnt make directory, probably because my access is limited. Please help me guys. THX
 
and columb :
your script doesnt work, I tried :
cat localfile | ssh r_adoc_syduwlp12 "cat > remote file"

coz the username is adoc and server name is syduwlp12.

THX
 
columb's way should work. i had using the same method a lot of times.


cat ~/.ssh/identity.pub ~/.ssh/id_rsa.pub ~/.ssh/id_dsa.pub | ssh $dest_host -l $rem_usern 'cat > ~/.ssh/authorized_keys'
 
Hi mrn,

I'm interested about your way, but still I couldnt find "volmgt". Cause when I typed "find ..." they said permission denied.

So Just wanna confirm about your way is that right when I put USB keys in client machine so I can put files in USB key to UNIX server??

columb, your way is work :)
Just wondering which one is faster between your way and sftp ?

Cheers.
 
Hi columb,

Thx for the command that you gave me how to put data to server, but what command about how to get data from the server ?
 
To get data from the serveer
Code:
ssh remote_user@remote_host "cat /path/to/remote/file" > /path/to/local/file
I don't understand why you feel that sftp is unsuitable for files > 1Gb. It will take a while but no slower than using ssh (or any other network method. If you can use gzip or compress to bring your file sizes down.

Columb Healy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top