Ubuntu :: File Transfer From Shell Account?
Mar 3, 2011today itself i joined a shell account given to me by cjb.net. i am able to ssh [URL] from my putty... but how can i download files or get help from the this server...
View 9 Repliestoday itself i joined a shell account given to me by cjb.net. i am able to ssh [URL] from my putty... but how can i download files or get help from the this server...
View 9 Repliesi am trying to transfer a file from my live linux machine to remote linux machine it is a mail server and single .tar.gz file include all data. but during transfer it stop working. how can i work and trouble shooot the matter. is there any better way then this to transfer huge 14 gb file over network,vpn,wan transfer. the speed is 1mbps,rest of the file it copy it.
rsync -avz --stats bkup_1.tar.gz root@10.1.1.22:/var/opt/bkup
[root@sa1 logs_os_backup]# less remote.log
Wed Mar 10 09:12:01 AST 2010
building file list ... done
bkup_1.tar.gz
deflate on token returned 0 (87164 bytes left)
rsync error: error in rsync protocol data stream (code 12) at token.c(274)
building file list ... done
code....
How to get output of text file containing account number, debit amount, credit amount,date using shell script?
View 1 Replies View RelatedHow can I transfer data from one user account to the other? I wish to delete one of the accounts but before that I want to transfer all the data in that account to the other account so that my data is saved.
View 3 Replies View RelatedHaving a bit of a issue with Debian Squeeze and transferring files to the Sony PSP..Hook up PSP to USB port and Debian mounts it..I go to drag a 125 meg mp4 to video folder..Copy windows takes about 10 seconds to transfer it..Exit USB mode and there is no video there. Go back into USB mode and look at video folder on the PSP memory stick and there is no video..It vanished. From another after copy progress closed I right clicked PSP and unmounted it..
It error-ed saying device was busy and could not unmount..Looking at light on PSP i see memory stick is still being written to..i wait for light to stop flashing..About a minute or so..Then am able to unmount it..Go to PSP video and theres the video ready to be watched. Debian isnt accurately showing the copy progress...Its showing complete when it isnt..I have to watch the light on PSP to know when it is truly finished.
I made a shell script with the following piece of code to transfer some files via ftp:
Code:
echo 'before ftp'
ftp -n $FtpHost << EOF
quote USER $FtpUser
quote PASS $FtpPasswd
quote CWD $FtpDir
put $FileNameLog
put $FileNameSqlTarSum
put $FileNameSqlTar
put $FileNameWwwTarSum
put $FileNameTar
quit
EOF
echo 'before rm'
rm $FileNameWwwTar $FileNameWwwTarSum $FileNameSql $FileNameSqlTar $FileNameSqlTarSum $FileNameLog
echo 'after rm'
The problem is that the script ends after the "quit" command in FTP, so code after it won't run, like the remove of temporary files. If I remove this "quit" command, the shell understands I'm still parsing commands to FTP, although being after the EOF. I used this echo commands to check which parts of the script are running.
Today I faced a very strange issue while switching to root account in a bash shell.My OS : CentOS-5.1.4
I logged in my system with account name user1 and I open the terminal and below shell opens
[user1@localhost ]$
Now when I type su and want to switch to root account , it fails
[user1@localhost ~]$ su
Password:
su: incorrect password
[user1@localhost ~]$ exit
I know the password is 123 & I m 100% sure .
I want to have a choice or more preferable pass shell as command line argument when I ssh to an linux account.i.e. If John logs in to account "zzz" on server "abc", by default definition of account "zzz" n server "abc" he get csh.But Sally desires that when she logs in to account "zzz" on server "abc", she needs the login shell to be ksh,and Rick wants bash when he logs in to account "zzz" on server "abc".What is the most non-intrusive / easiest way to achieve this? Each user can set their preference on ssh command line or create a simple alias by each shell, but not sure how to do this.
View 6 Replies View RelatedIs there a non-root shell command that can tell me if a user's account is disabled or not? note that there is a fine distinction between LOCKING and DISABLED:
LOCKING is where you prepend ! or * or !! to the password field of the /etc/passwd file. On Linux systems that shadow the passwords, this marker flag may be placed in /etc/shadow instead of /etc/passwd. Password locking can be done (at a shell prompt) via password -l username (as root) to lock the account of username, and the use of the option -u will unlock it.
DISABLING an account is done by setting the expiration time of the user account to some point in the past. This can be done with chage -E 0 username, which sets the expiration date to 0 days after the Unix epoch. Setting it to -1 will disable the use of the expiration date.
The effect of locking to to prevent the login process from using a supplied password to hash correctly against the saved hash (by virtue of the fact that the pre-pended marker character(s) are not valid output character(s) for the hash, thus no possible input can ever be used to generate a hash that would match it). The effect of disabling is to prevent any process from using an account because the expiration date of the account has already passed.For my situation, the use of locking is not sufficient because a user might still be able to login, e.g. using ssh authentication tokens, and processes under that user can still spawn other processes. Thus, we have accounts that are enabled or disabled, not just locked. We already know how to disable and enable the account - it requires root access and the use of chage, as shown above.To repeat my question: is there a shell command which can be run without root privileges which can output the status of this account expiration info for a given user? this is intended for use on a Red Hat Enterprise 5.4 system.The output is being returned to a java process which can then parse the output as needed, or make use of the return code.
I have my server set up with AjaXplorer but there is a bug in the flash uploader that doesn't let you upload anything to the server.The only way I can update any files or add new ones is to physically plug in an external hard drive or USB drive and transfer them.I have openssh access and that's all set up, but can I transfer files somehow from my laptop to my server using like a cp command?
View 9 Replies View Relatedi have a bit of a problem and it seems i am not alone, google gave me a lot of hits but no solution.i'm running a dual-boot system on my laptop.
ubuntu 9.10 is installed on ext3
windows xp sp3 on ntfs
files are on another ntfs partition
if i want to copy a file (or folder) bigger than 250mb my laptop literally gives up until the file transfer is complete. opening up a terminal via keyboard shortcut gives my an idea how long a ice age can last.this happens with ext3 to ext3; ext3 to fat32; ext3 to ntfs and ntfs to ntfs.today i wanted to backup some files (12GB ~4k files) the first 4gb ran with 20MB/s (all open applications grayed out). after 2h i came back to see that only 6GB where done.
Is there any solution for slow file transfers experienced when copying files to usb in 10.04?
View 2 Replies View RelatedUbuntu 10.04 - drive-A, SATA
Windows 7 - driver-B, SATA
The PC is dual boot. I want to transfer a file from drive-A to drive-B.
After starting Ubuntu 10.04 how can I do it?
$ sudo fdisk -l
can't find drive-B
I have recently fresh installed ubuntu 10.10 on my Acer Aspire 5940G laptop. and everything seems to be going great apart from i keep on getting random system lockups when i am transfering files from my ipod or usb disk or copying large files on my hard disk.
View 1 Replies View RelatedI have two machines running open vpn connected trough a 8 port Gigabit switch (Tp-link TL-SG1008D). The problem is when I try to transfer a file the transfer starts at 13 mb/s and drops to 300kb/s. When I replaced the ram on the two machines and restarted the transfer the speed was 13mb/s constant. How does changing the ram makes such differences (at the first transfer they had 512mb at the second transfer the machines had only 128mb) ? Os Ubuntu Server 10.04.2 LTS
PS :Tried with 256 ram and the problem persists...
Machines: two hp d530
i have 20 pc's in LAN, recently i installed ubuntu server on 2 pc's. i am in need to transfer files between these 2(ubuntu) pc's. i tried sftp but i failed to workout.
View 9 Replies View RelatedCode:
cat ${SOURCE}/{start,universal,index,end}.txt > ${SERVER}/index.html
cat ${SOURCE}/{start,universal,02042010,end}.txt > ${SERVER}/02042010.html
[code]....
I managed to ssh lan for file transfer but now i want to connect to ssh again for file transfer but from another city,not lan, What ip do i type in Host Ip? I mean,i can tell them to start the ssh server but then i need to type the external ip.
View 2 Replies View RelatedI have 8.04.3 server-32bit. It is on an HP 2.3ghz Pent 4 with 512 mb of RAM.I had previously installed Ubuntu and Kubuntu in a dual boot with XP (actually had a triple boot with XP, Ubuntu, and a BETA Windows 7) for a while, Grub got messed up so I ended up wiping it and just put my XP back on it. I have been intimidated by the command line and when thinking server, I tried the 30 day deal with windows Home server, its OK but it's $100.00 for the permenant version.
Anyway, I manned up to the challenge, installed Ubuntu server, set up as SSH and Samba. I administer from PuTTy and WEBMIN, I tried TightVNC but the GUI seemed very useless, so on a reinstall I went headless.The problem is I have alot of MP3 files I want to transfer back to the server that I had previously transfer to and back again from the Windows server, it was sceamin' fast compared to this. I have found threads talking about using NTFS, I have the EX3, or whatever the Ubuntu format is. Could that cause slow transfers, from NTSF through Samba to Ubuntu?
If I need to get a file to someone I could place it on the server and somehow automate an email telling them there is a file available. They could login to the server based on their email address and a randomly generated key combination and down load the file.I also need it to preform the same function going the other way. Login into my server and place files going to me.
View 2 Replies View RelatedSeldom use windows, but need to transfer huge music file from Linux to XP
View 3 Replies View RelatedI am looking for a little help finding an appropriate application. Basically I am looking for something like a web based FTP client that runs on the file server (I use the term loosely) I have. Basically I want to be able to open a web browser on a different computer in my internal network, punch in hostnameort and get a web page that I can use to move files between the computer.
I don't care if it uses FTP or not. I basically just want the specific functionality. I have vsftp installed on my 'server' already.I have looked at Gollem, but I am unsure if that is the correct application for me to use. If you have used it any opinions would be great.I know this is probably not the most secure way to do things, but it is only for my internal network and kind of an experiment for me. Any help would be appreciated. Thanks.
I have ubuntu 10.04 on my netbook and all my files on my XP desktop. How can I connect the two so that I can transfer files from the XP machine to the Ubuntu netbook? Both have WiFi and ethernet. I am not fluent in windows networking but could manage to join two xp machines using an ethernet cable and naming the two with the same workgroup then setting a folder as shared!
View 6 Replies View Relatedi have a windows vista laptop that has a 20GB file that i want to use FileZilla to transfer that over to my desktop. I installed filezilla client on both computers. For host, on vista do i type in the ip address of the ubuntu desktop and then on the ubuntu desktop type in the vista's ip address for host and use the same port numbers? using the vista's ip address as 192.168.0.3 and port 22 and the desktop address is 192.168.0.6 i am getting a message like:
Status: connecting to 192.168.0.6
Response: fzSftp started
command: open "name@192.168.0.6"22
Error: connection timed out
error: could not connect to server
i hit quickconnect on both sides and they both give me same results (obviously adjusted for the ip address). Could someone help me figure out what the heck i am doing? I have not used filezilla before.
I'm trying to create an Ubuntu Server file server that will handle large file transfers (up to 50gb) from the LAN with Windows clients. We've been using a Windows server on our LAN on the file transfers will occasionally fail... though the server is used for other services as well.
The files will be up to 50gb. My thoughts are to create a VLAN (or separate physical switch) to ensure maximum bandwidth. Ubuntu server will be 64bit with 4tb of storage in a RAID 5 config.
what might cause a file transfer to start out fast (11-12 mb/sec) and then drop to about 1 mb/sec after having downloaded about 2 gb? This is what happens when I download files from my old fit-pc 1.0 (a small mini PC with 256 MB/RAM, an AMD Geode processor, and a 100 mbps network card) via ftp over my local network. Is it some buffer filling up?
I was directed to some article about "bufferbloat" earlier [URL], but I did not get any solution from that unfortunately. I have tried increasing the server's TCP buffer using these instructions: [URL] , but it does not make any difference. By the way, I am running Ubuntu Server 10.10 on the fit-pc and Ubuntu 10.10 desktop on the connecting client (which is just a normal Core 2 duo, 4 gb ram computer).
UPDATE: I should add that things were working fine when I was using ubuntu 7.10, but are not now that I have installed 10.10...
UPDATE 2: I just found out this is ONLY a propblem when transferring files to ubuntu. If I use winscp from Windows 7, the transfer speeds are fine...
UPDATE 3: It seemed it was gFTP that was the culprit. Transferring the files using filezilla instead in Ubuntu yields an excellent rate of 11.8 MB/sec. Anyone have an idea what might be wrong with gFTP?
For the past week+ I have been experiencing very slow file transfers, moving files from one HDD to another - both internal, connected with SATA, should anyone care.. When I move any file, regardless of its size, it is moved with 1.1 MB/sec at very best That's a major pain in the behind, even for moving small amounts of data! If anyone could point me in the right direction, or give me a solution
View 9 Replies View RelatedI'm trying to send mp3 files via usb to my mobile phone, but file transfer speed gets incredibly low, like 5,3 kb/s. How to solve this / useful ubuntu software?
View 9 Replies View RelatedI am trying to set up a computer so that I can remotely torrent files and then transfer the files to my PC while I am at college. I set up my computer so that it has a dynamic dns as well as hosting via DynDns. I have recently hit a wall when trying to find a way to transfer my files from the computer at home to my Windows 7 computer at school.
View 4 Replies View RelatedI have a linux server and I have SSH Access to it.
How do I transfer my files to my desktop.