File copy to a windows server over VPN

Issues related to configuring your network
Post Reply
edlentz
Posts: 71
Joined: 2013/06/11 20:20:25

File copy to a windows server over VPN

Post by edlentz » 2018/02/24 13:30:48

I need to sync a directory on a Centos 6 mchine over the internet to a Windows server. I so far am thinking of using Openswan on the linux machine to connect to the Windows network, then possibly using Rsync to move/copy the files to the Windows machine. The files will be audio recordings of phone calls of bank transactions. So we need to make sure it is secure and positively copied over. Am i on the right track here? Is there a better way that I so far haven't thought of?

Thanks for any ideas

tunk
Posts: 334
Joined: 2017/02/22 15:08:17

Re: File copy to a windows server over VPN

Post by tunk » 2018/02/24 14:54:24

Would e.g. winscp or filezilla (in SSH-mode) from your windows server be alternatives?
Or see if there's a windows sshfs client, mount it in read-only mode, and then use a robocopy script + Task Scheduler.

edlentz
Posts: 71
Joined: 2013/06/11 20:20:25

Re: File copy to a windows server over VPN

Post by edlentz » 2018/02/24 15:20:55

Thanks tunk

I need to be as low impact on the Windows machine as possible. Not my machine and managed by the bank. A share is about all I can get from them for many reasons

User avatar
TrevorH
Forum Moderator
Posts: 22789
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: File copy to a windows server over VPN

Post by TrevorH » 2018/02/24 17:02:53

The other alternative I can think of is just to serve them up via an https web site.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

edlentz
Posts: 71
Joined: 2013/06/11 20:20:25

Re: File copy to a windows server over VPN

Post by edlentz » 2018/03/08 14:02:15

So I figured out alot of things since my last post. I have a Centos6 server in the office with Samba running and sharing an external drive. I found a way to run ssh connections without passwords using an rsa key AND using Rsync to move the files I need from the client to the server share. Voila! it works really nice. The down side is that no matter what I do I need to use the root account on the server to make the connection.
Looking at the audit log I see this:

type=USER_AUTH msg=audit(1520515062.649:884767): user pid=31205 uid=0 auid=0 ses=146011 msg='op=PAM:authentication acct="?" exe="/usr/sbin/sshd" hostname=x.x.x.x addr=x.x.x.x terminal=ssh res=failed'

The message I get when I try ssh [username]@myserver.com gets me the password prompt. Entering the password I get a connection closed.

I was getting :
reverse mapping checking getaddrinfo and POSSIBLE BREAK-IN ATTEMPT error messages via SSH
Until I changed UseDNS no and GSSAPIAuthentication no in the sshd_conf file But that is just masking that error right?

I would really rather not use the root account for this. Anyone have any ideas???

Thanks

edlentz
Posts: 71
Joined: 2013/06/11 20:20:25

Re: File copy to a windows server over VPN

Post by edlentz » 2018/03/08 14:10:16

I think I figured it out. Earlier I edited sshd_config, I looked into ssh_config and sure enough GSSAPIAuthentication was set to yes, changing it to no appears to allow me to use a more obscure user / password

Post Reply