I have done the port forwarding to a production machine from our office machine it includes 3 hopes ie 3 machine in which I have done the portforwarding... but I am not able to rsync and directory or file even small fies with 10KB, but I am able to do do the rsync in to the same machine with 2 hopes
I have 2 boxes, both using Slackware64 ver. 13. Box1 - ssh server and rsync server daemon are functional. Box2 - client box that connects to Box1 by ssh as well as rsync by way of ssh.
I followed the instructions in Chapter 2 of the O'Reilly book "The Secure Shell, The Definitive Guide" to setup ssh authentication by pub/private keys. The configuration works, but only once, and upon re-logging into Box2, I find I have to go through the following setup to make it work again - $ssh-agent $SHELL $ssh-add /home/mike/.ssh/id_rsa then prompted to provide passphrase.
Then rsync over ssh will work - example: rsync -e "ssh -p 45000" -avzi mike@10.10.10.100:/zzz /mnt/current I want to get it configured so that it works every time with no user input, in order to configure automatic cronjobs using rsync commands like the one above.
Thought I'd post it here because it's more server related than desktop... I have a script that does:
[Code]....
This is used to sync my local development snapshot with the live web server. There has to be a more compact way of doing this? Can I combine some of the rsyncs? Can I make the rsync set or keep the user and group affiliations? Can I exclude .* yet include .htaccess?
When I run rsync --recursive --times --perms --links --delete --exclude-from='Documents/exclude.txt' ./ /media/myusb/
where Documents/exclude.txt is
- /Downloads/ - /Desktop/books/
the files in those directories are still copied onto my USB.
And...
I used fetchmail to download all my gmail emails. When I run rsync -ar --exclude-from='/home/xtheunknown0/Documents/exclude.txt' ./ /media/myusb/ I get the first image at url.
I have a tiny shell script to rsync files between two servers and remove the source files.
This script works fine, when it has been initiated manually or even when the rsync command is executed on the command line.
But the same script doesn't work, when I try to automate it through crontab.
I am using 'abc' user to execute this rsync, instead of root, as root login to servers are restricted in all of our servers, by us.
As I mentioned earlier, manual execution works like charm!
When this rsync.sh is initiated through crontab, it runs the first command(chown abc.abc ...) perfectly without any issues. But the second line is not at all executed, and there is no log entry i can find at /mnt/xyz/folder/rsync.log.
I'm using Ubuntu 10.04 LTS server and Postgresql 8.4. I have a .sh script that is run by cron every other hour. That works fine. The .sh script includes an rsync command that copies a postgresql dump .tar file to a remote archive location via ssh. That fails when run by cron; I think because it is (quietly) asking for the remote user's password (and not getting it). I set up the public/private ssh key arrangement. The script succeeds when run manually as the same user that the cron job uses, and does not ask for the password. I am able to ssh to the remote server from the source server (using the same username) and not get the password prompt (both directions), so why doesn't rsync work? I even put a .pgpass file in the root of that user's directory with that user's password, and the user/password are identical on both servers.
I think the problem is rsync is not able to use the ssh key correctly. I tried adding this to my script but it didn't help.
Code:
Here is the rsync command embedding in the .sh script.
On Ubuntu server 10.10, with a relay smtp server with authentication via postfix; I keep getting 535: Incorrect authentication data. I'm sure my username and password is correct. Heres how I set up postfix: I created a file called smarthosts.conf in my /etc/postfix/ directory that contains the following:
[Code].....
my server uses plain text authentication on port 25. I would like to use security like SSL, but this particular server is unsecured.
I am looking for a secure way to backup data from user's computers ( Linux/Windows ).My needs : 1. Secure 2. Per user backups 3. Windows/Linux compatible ( server will be Linux only ) 4. Incremental backups
My preferences : 1. Rsync
Things I can not do : 1. Give out shell access ( forget rsync -e ssh ) 2. Use a protocol that takes too many ports ( my box is behind my router ).
If I am running a script, let's say a install script. Is there a way to make Su repeat authentication rather then just returning "Authentication failed" and continuing the script?
I need to make a choice on what authentication protocol I want to use for Authentication and Authorization. I was looking at Radius and then literature suggested that Diameter was a better protocol. Keep in mind I need this on a hetrogeneous setup ( linux & windows together). Diameter seemed like a good fit until I discovered that the open source code no longer seems to be maintained ( C/C++).
I was also looking at Kerberos as an option though there is alot overhead with the server. SSL/TLS or EAP? I am looking for simple but secure and am new at the security protocols.
I have a problem with ldap client authentication in ubuntu. I am using rhel5 as openldap server and I configured ubuntu as client, when I am trying to login the following message is coming."su: Authentication service cannot retrieve authentication info. Sorry" But when I do search through "ldapsearch" command output is coming without any errors, Can anybody explain what would be problem.
I want to backup windows PC's in my network to my ubuntu 11.04 pc, using rsync. Rsync is working, but I have to mount the pc's. A few details. My server is named: server The windows pc is named: \PC_OF_MARTIJN The folder where the mount is coming is: /home/bastiaan/backup/mounts Credentials are in /home/bastiaan/backup/credentials and they're called: martijn
So what I'm going to add to /etc/fstab is this: Code: //server \PC_OF_USER /home/bastiaan/backup/mounts/user cifs credentials=/home/bastiaan/credentials/user,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0 Will this work?
I'm trying to set up rsync backups on my ReadyNAS and I'm getting the following error: ERROR: The remote path must start with a module name not a / This error is accompanied by the following information:
shed some light on what I am doing. I am wondering if I just havehings back to front.Server (MESH):Fedora 13Firewall ports open tcp 22(ssh), tcp 873(rsync)sshd service started
I need to be able to use an rsync command in script that will be run by cron. And it needs to be able to pass a password to rsync so that the remote server it's connecting to will authenticate.
I cannot set up ssh keys between the two servers, it's not an option. I cannot use any other language other than bash, it's my only option. I know this is highly insecure, I have no other option.
So far I have this: rsync --rsh="/usr/bin/ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o PreferredAuthentications=password" -raxv /source/dir/* user@remotehost:/target/directory/.
This allows the script to ignore host verification and goes directly to the password prompt. I need the script to fill in this password prompt with the password that is stored in a variable.
I tried using expect, but I honestly don't know the syntax, it just keeps failing. A lot of the examples I'm finding online for expect starts off with a "spawn", which i don't have installed, and not sure if I have the ability to install it yet.
This is a recent problem, and I can't pinpoint any change/upgrade that would cause this. Rsync transfer from Client to Server: sent 11756196 bytes received 1032741 bytes 138258.78 bytes/sec total size is 144333466390 speedup is 11285.81 Pinging back and forth from each machine is fine. No Ifconfig errors Client, but Server has RX packet errors.
Windows computer continually generates images (AutoGrabnnn). All downstream analysis on linux computer. I need analog of rsync bringing files over as they arise. rdesktop seems to be the approach. Is this already described somewhere to bypass much trial-and-error?
At my workplace the wireless connection is open but once you connect you first need to authenticate on your browser to be able to use the internet.On Windows as soon as I open whatever page I get the login request.On Linux I open firefox but nothing happens, just get the usual error page like if I had no connection. The IP's I get as well as DNS seem ok, I even tryed to match them up with windows.I tried a lot but can't get to the login page.
I have question regarding AD authentication. Will Ubuntu workstation joined AD domain via likewise client authorize to TMG proxy directly without any utilities like ntlmaps and etc?
i have windows server 2003 in my office and my xp client uses domain based active directory login in their own systems ,my question is that how can i create the same environment in the linux platform
is there a "debug" method for your wireless connection. My authentication for 2 laptops Dell d600 and IBM t42 both are unable to connectreless routers (2 different ones).Fedora 14 32bit Gnome NetworkManager
I'm trying to connect to my Xubuntu box (zelda) remotely using my RSA key. I'm using Cygwin on my Windows box (link) to SSH in to the Xubuntu box. I've created the key and placed it in the authorized_keys file on my remote box. Here's where it gets weird. When I ssh into zelda the first time, it prompts me for my password. However, if I'm already connected to zelda and try to open another connection, it prompts me for my RSA passphrase. This is very confusing, and I have no idea what's going on.Here's my sshd_config file on zelda.
Code: # Package generated configuration file # See the sshd(8) manpage for details
I am using ubuntu in my new office, and I can't get the network working. The "official" OS installed was a Windows, and it has a special "dial-up" app for the LAN connection (not wireless). My network admin is apparently not helpful, since he actually knows nothing about the internals for the "dial-up" app (he did not even ever heard of TTLS, PEAP, MD5, etc), and claimed that no OS except for Windows can work...
Well, I have tested various configurations with my Mac laptop, and apparently the LAN connection requires 802.1X authentication, and it's using a very weird combination "TTLS+PEAP+MD5" (if I check these options in Mac OS X, the connection works). However, in NetworkManager, I can't select both TTLS and PEAP, and moreover, TTLS does not work with MD5. So, is there anything I could try?