LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-06-2004, 10:01 PM   #1
jgruss
LQ Newbie
 
Registered: Apr 2004
Location: miami, fl
Distribution: mac os x, suse pro & sbs 2000
Posts: 24

Rep: Reputation: 15
using rsync - one of the folders in path has spaces???


i am using rsync to back up folders on my ibook to a fc2 box on my home network. The problem is the folder i am trying to back up is called "Microsoft User Data" so the folder has spaces in it. The terminal cant read this properly because of the spaces in the name.
 
Old 07-07-2004, 01:05 AM   #2
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
Consider renaming the directory.

You should be able to reference the directory with spaces by single quoting (e.g., 'Microsoft User Data').
 
Old 07-07-2004, 10:00 AM   #3
jgruss
LQ Newbie
 
Registered: Apr 2004
Location: miami, fl
Distribution: mac os x, suse pro & sbs 2000
Posts: 24

Original Poster
Rep: Reputation: 15
cant rename directory

if i rename the directory my entourage mail program wont work cause it the data file for that program. when i tried the 'Microsoft User Data' i get back the following

link_stat //users/jay/Documents/Microsoft : no such file or directory
Link_stat User : No such file or directory

what else can i try

jason
 
Old 07-07-2004, 01:54 PM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
And if you try
"Microsoft\ User \ Data"
or
"Microsoft\x20User\x20Data"

Last edited by keefaz; 07-07-2004 at 01:55 PM.
 
Old 07-07-2004, 04:07 PM   #5
jgruss
LQ Newbie
 
Registered: Apr 2004
Location: miami, fl
Distribution: mac os x, suse pro & sbs 2000
Posts: 24

Original Poster
Rep: Reputation: 15
"Microsoft\ User \ Data" = worked like a charm thanks for the help.

You wouldnt happen to know anything about ssh keys and getting them to work i haved tryed everything and nothing seems to work. i always get asked for my password when logging on.

Jason
 
Old 07-07-2004, 04:49 PM   #6
jgruss
LQ Newbie
 
Registered: Apr 2004
Location: miami, fl
Distribution: mac os x, suse pro & sbs 2000
Posts: 24

Original Poster
Rep: Reputation: 15
spoke to soon yes the above did fix the problem with the spacing in the folder name but when i try to add it to my .bashrc file to make an alias out of it, it gets screwed up again.. Do you know a way around this.

Jason
 
Old 07-07-2004, 06:18 PM   #7
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
How did you make alias in your ~/.bashrc?
for ssh it quite simple :
ssh-keygen -t rsa
--accept default, press enter

Enter passphrase (empty for no passphrase):
--leave empty, press enter

Enter same passphrase again:
--leave empty, press enter

The id_rsa.pub is your public key,this is the file you need to copy to remote host.
scp ~/.ssh/id_rsa.pub remotemachine:.ssh/authorized_keys2

Now after that you should login into the remote host by just :
ssh remotehost
without password
 
Old 07-07-2004, 06:29 PM   #8
jgruss
LQ Newbie
 
Registered: Apr 2004
Location: miami, fl
Distribution: mac os x, suse pro & sbs 2000
Posts: 24

Original Poster
Rep: Reputation: 15
i have tried that a few times also tried the other i believe it is tsa and installed that in authroized_keys, and that doesnt work either. please help me i am so lost with this one.
 
Old 07-07-2004, 07:03 PM   #9
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
It is not difficult you have a hidden directory named .ssh, inside there is your public key file named id_rsa.pub you take this one and copy it in the .ssh directory of the remote host and rename it authorized_keys2.
 
Old 07-07-2004, 07:25 PM   #10
jgruss
LQ Newbie
 
Registered: Apr 2004
Location: miami, fl
Distribution: mac os x, suse pro & sbs 2000
Posts: 24

Original Poster
Rep: Reputation: 15
i messed up. i was trying to get rid of any old keys that may have been in there and i accidentally deleted both my ssh_config and my sshd_config files, where can i find a sample file of both or high do i reinstall thos files.
 
Old 07-07-2004, 07:27 PM   #11
jgruss
LQ Newbie
 
Registered: Apr 2004
Location: miami, fl
Distribution: mac os x, suse pro & sbs 2000
Posts: 24

Original Poster
Rep: Reputation: 15
i know about the .ssh hidden folder i made the keys then i transfered the .pub key to my ibook and used cat id_rsa.pub >> authorized_keys2
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to expand wildcards in a path with spaces? sts Linux - General 1 11-12-2005 01:50 PM
Open folders with spaces in the name via the CLI virtualme Linux - Newbie 3 02-08-2005 10:40 PM
Sharing folders in Samba which are not in the HOME path ganja_guru Linux - Software 22 11-29-2004 09:18 AM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM
copying folders with spaces between? flamesrock Linux - Software 3 03-13-2004 01:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration