Displaying 20 results from an estimated 4000 matches similar to: "Rsync and SSH on Windows"
2011 Sep 12
2
Ignoring /boot
Hi,
I have the following script that I'm writing to backup my gentoo linux
system.
----- start of script -----
#!/bin/sh
#
#
RSYNC_OPTS="--archive --one-file-system --perms --executability --progress
--stats --delete-after --hard-links --keep-dirlinks --verbose --inplace"
RSYNC_USER="bs"
RSYNC_SERVER="192.168.6.6"
RSYNC_MODULE="ben-desktop"
2006 Nov 07
2
ssh catch 22
Hi all,
I'm stuck with a little dilemma and I thought someone could give me a little
advice.
Is there a way to use rsync with an ssh certificate?
what I have:
----------------
First of all I am forced to use the root account with ssh which I know is a
big no, no, but sometimes it can't be helped.
Second, I need to use a certificate without a password as root which is even
worst than
2017 Feb 20
2
second ssh connection for the first ssh request
Hi I changed sshd_config to run script, .profile for user cliuser like
this:
Match user cliuser
ForceCommand . /home/cliuser/.profile
cat /home/cliuser/.profile
#!/bin/sh
if [[ "$1" == "-c" ]]; then
exit 5
fi
trap 'exit' 1 2 3 4 15
ssh -tt secadmin at 127.0.0.1 -p 2024
exit
Now, with this, i wanted connections to sshd coming on 2025 to go to 2024
for user
2017 Jan 20
2
^C doesnt work on ssh session
Thanks Darren, will check on your response.
I am attaching sshd, ssh logs with debug flags. Please see if it gives any
hint:
when I press ^C in ssh session, no log gets printed in both server/client
side.
Best Regards,
On Wed, Jan 18, 2017 at 3:09 AM, Darren Tucker <dtucker at zip.com.au> wrote:
> On Wed, Jan 18, 2017 at 5:10 AM, Sudarshan Soma <sudarshan12s at gmail.com>
2002 Nov 18
2
Rsync and ssh with passwordless authentifikation
Is it possible to konfigure a passwordless authentifikation in kombination
with ssh.
for example:
to a specific folder on a server named server1 has only user1 access.
the user1 only exists on server1.
server2 wants to replicate a foler from server1 to himself.
the rsync process uses the rsync_user, which exists on both machines.
the rsync process asks every time the job runs for the password
2006 Oct 12
6
backup system files (and permissions) over ssh
how do you backup system files like /etc/ over ssh to another machine
and keep permissions the same on the remote backup location ?
i tried using -a flag, but because i'm connecting through ssh i'm not using Rsync module on the remote computer and therefore i cant write files as root so -a flag is not working.
all the files are being written with owner SSH_USER and group SSH_USER_GROUP
i
2013 May 21
2
SSH users authentication depending on their public key.
Hi everyone.
I'm looking for a way to identify my SSH's users according to their
public key; I mean I would like to have their name logged in my bash
session (in a shared unix account).
I put this in my .profile:
export HISTTIMEFORMAT="[%Y-%m-%d %H:%M:%S - $SSH_USER] "
So now I'm trying to make OpenSSH fill the "SSH_USER" variable.
First I have to exclude the
2014 Nov 03
0
[PATCH] customize: Add --ssh-inject option for injecting SSH keys.
This adds a customize option:
virt-customize --ssh-inject USER
virt-customize --ssh-inject USER:string:KEY_STRING
virt-customize --ssh-inject USER:file:FILENAME
(ditto for virt-builder and virt-sysprep)
In each case this injects into the guest user USER
a) the current (host) user's ssh pubkey
b) the key specified as KEY_STRING
c) the key in FILENAME
adding it to
2005 Apr 04
0
io timeout after 180 seconds
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks for all the help so far. I am learning a lot from it.
I have a script that I will post bellow that when I run it gives me
this error.
mysql/website_forum/nntp_settings.MYD
io timeout after 180 seconds - exiting
rsync error: timeout in data send/receive (code 30) at io.c(103)
rsync: connection unexpectedly closed (1493583 bytes read so far)
2016 May 19
2
[PATCH 1/2] customize: minor function factoring in ssh_key
Turn the snippet reading user information from /etc/passwd in a slightly
more generic function, so there is no need to copy&paste for other
details.
Mostly code motion.
---
customize/ssh_key.ml | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/customize/ssh_key.ml b/customize/ssh_key.ml
index a4e4a51..7c482e7 100644
--- a/customize/ssh_key.ml
+++
2015 Sep 07
1
[PATCH] customize: Create .ssh as 0700 and .ssh/authorized_keys as 0600 (RHBZ#1260778).
Both ssh-copy-id and ssh create .ssh as 0700. ssh-copy-id creates
.ssh/authorized_keys as 0600.
Thanks: Ryan Sawhill for finding the bug.
---
customize/ssh_key.ml | 4 ++--
src/guestfs.pod | 17 +++++++++++++++++
2 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/customize/ssh_key.ml b/customize/ssh_key.ml
index 09664bf..dd6056f 100644
--- a/customize/ssh_key.ml
+++
2016 May 19
0
[PATCH 2/2] customize: fix ownership when creating ~/.ssh/authorized_keys (RHBZ#1337561)
When creating ~/.ssh and ~/.ssh/authorized_keys (in case they are
missing), change their ownership to the target user. If not, they are
owned by root.
---
customize/ssh_key.ml | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/customize/ssh_key.ml b/customize/ssh_key.ml
index 7c482e7..d05816c 100644
--- a/customize/ssh_key.ml
+++ b/customize/ssh_key.ml
@@ -115,20 +115,24
2006 Sep 12
2
rsync through ssh - i get an error
On Mon, Sep 11, 2006 at 01:31:00PM +0200, rsync-mail-gateway@nasbackup.com wrote:
> rsync: read error: Connection reset by peer (104)
This means the socket closed. Does rsync even get started on the remote
system? That would be the first thing to investigate. If it is getting
run, does the remote process crash or die? If you are connecting with a
daemon process, you can look at the logs to
2009 Jun 12
1
--compare-dest= dir list ?
Hi,
I would like to compare a backup dir with a directory list in
--compare-dest= but I don't know how to specify this list. If a have
only one dir it's ok, but if I have 2 or more dir I have an error ?
Here is my script:
#!/bin/bash
SSH_USER=
SSH_HOST=
TOBCK=/
EXCLUDES=/root/bckscript/ns200176/excludes
LOG=/root/bckscript/ns200176/rsync_$(date +'%Y-%m-%d_%H.%M.S').log
2016 Jul 14
0
[PATCH v2 4/7] customize: Add module for doing SELinux relabel of filesystem.
This implements the --selinux-relabel option for virt-customize,
virt-builder and virt-sysprep. There is no need to autorelabel
functionality now.
Thanks: Stephen Smalley
---
builder/Makefile.am | 1 +
builder/virt-builder.pod | 20 +++++++++----------
customize/Makefile.am | 2 ++
customize/SELinux_relabel.ml | 46 +++++++++++++++++++++++++++++++++++++++++++
2015 Jul 17
0
[PATCH 2/2] customize: add basic subscription-manager operations
Add simple operations for RHEL guests using subscription-manager, so it
is possible to e.g. install software on them.
---
builder/Makefile.am | 1 +
builder/virt-builder.pod | 47 ++++++++++++++++++
customize/Makefile.am | 2 +
customize/customize_run.ml | 34 +++++++++++++
customize/subscription_manager.ml | 53 ++++++++++++++++++++
2014 May 24
1
add time to log file for cron job
Hey all,
I'm trying to figure out a way to insert a timestamp into a log file I'm
creating for a cron job I'm setting up:
/usr/bin/rsync -v --min-size=1 -rlpgo -O --inplace /home/myuser/Get*
root at xx.x.xx.xx:/mnt/bravotv/media/compass 2>&1 >& /tmp/rsync_user.log
I've googled this but all I could find are tips on how to add the time and
date to the name of the
2002 Oct 30
1
upload to rsync server syntax problems
What I'm trying to do: upload files from my local machine to an rsync server
running on a remote host.
What I don't know: syntax on how to do this.
I initially set the conf file so that I could download from the remote
machine to my local machine, the syntax:
rsync -azv --delete rsync://user@remote.machine.com:12923:blah destdir
This worked fine. So then, I wanted to go the other
2001 May 04
0
Exit status strangeness
Hello,
Trying to get Oracle DataGuard running, which basically does a lot
of work between two replicating databases via rsh/ssh. It is breaking
because it pays very close attention to the exit status of ssh commands.
We are using OpenSSH 2.5.2p2 (also tried 2.9p1, same result) on Solaris 7
and 8. This seems to be Solaris specific, because I can't reproduce it
on Linux.
I've
2001 May 24
0
occasional ssh hang
I am using OpenSSH on Redhat 6.2 (Intel) and Solaris 2.6 (Sparc). I have a
job on the linux machine that ssh's to the Solaris machine every 20 seconds
or so and runs uptime. The problem is that after many iterations of this,
ssh will occasionally hang, and require a kill -9 to get rid of the
process. The problem happens with both protocol version 1 and 2, but it
seems to happened more often