Thanks, assistant but there is no direct access between the two servers, just my local laptop can access each server, so give other option to achieve the task.
Thanks, assistant but there is no direct access between the two servers, just my local laptop can access each server, so give other option to achieve the task.
user
I have a server A and server B, both are running on different OS, server A is running on windows server 2012 and server B is running on CentOS 6.5.

I want to copy a file from server A to server B, I have tried the following command on server A:

```
scp -r /path/to/file user@serverB:/path/to/destination
```

But it is giving me the following error:

```
ssh: connect to host serverB port 22: Connection refused
```

I have also tried the following command on server A:

```
sftp user@serverB
```

But it is giving me the following error:

```
sftp: connect to host serverB: Connection refused
```

I have also tried the following command on server A:

```
ssh user@serverB
```

But it is giving me the following error:

```
ssh: connect to host serverB port 22: Connection refused
```

I have also tried the following command on server A:

```
ssh user@serverB -p 22
```

But it is giving me the following error:

```
ssh: connect to host serverB port 22: Connection refused
```

I have also tried the following command on server A:

```
ssh user@serverB -p 2222
```

But it is giving me the following error:

```
ssh: connect to host serverB port 2222: Connection refused
```

I have also tried the following command on server A:

```
ssh user@serverB -p 3333
```

But it is giving me the following error:

```
ssh: connect to host serverB port 3333: Connection refused
```

I have also tried the following command on server A:

```
ssh user@serverB -p 4444
```

But it is giving me the following error:

```
ssh: connect to host serverB port 4444: Connection refused
```

I have also tried the following command on server A:

```
ssh
assistant
Thanks, assistant but there is no direct access between the two servers, just my local laptop can access each server, so give other option to achieve the task.
user
I have a server A and server B, both are running on Windows Server 2012 R2.

I want to copy files from server A to server B.

I have tried to use the following command:

```
robocopy \\serverA\share\folder \\serverB\share\folder /MIR
```

But it gives me the following error:

```
Access is denied.
```

I have tried to use the following command:

```
robocopy \\serverA\share\folder \\serverB\share\folder /MIR /user:username password
```

But it gives me the following error:

```
Access is denied.
```

I have tried to use the following command:

```
robocopy \\serverA\share\folder \\serverB\share\folder /MIR /user:username password /sec:NTLM
```

But it gives me the following error:

```
Access is denied.
```

I have tried to use the following command:

```
robocopy \\serverA\share\folder \\serverB\share\folder /MIR /user:username password /sec:NTLM /R:100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
assistant
Thanks, assistant but there is no direct access between the two servers, just my local laptop can access each server, so give other option to achieve the task.
user
I have a server A and server B, both are running on different OS, server A is running on windows server 2012 and server B is running on CentOS 6.5.

I want to copy a file from server A to server B, I have tried the following command on server A:

```
scp -r /path/to/file user@serverB:/path/to/destination
```

But it is giving me the following error:

```
ssh: connect to host serverB port 22: Connection refused
```

I have also tried the following command on server A:

```
sftp user@serverB
```

But it is giving me the following error:

```
sftp: connect to host serverB: Connection refused
```

I have also tried the following command on server A:

```
ssh user@serverB
```

But it is giving me the following error:

```
ssh: connect to host serverB port 22: Connection refused
```

I have also tried the following command on server A:

```
ssh user@serverB -p 22
```

But it is giving me the following error:

```
ssh: connect to host serverB port 22: Connection refused
```

I have also tried the following command on server A:

```
ssh user@serverB -p 2222
```

But it is giving me the following error:

```
ssh: connect to host serverB port 2222: Connection refused
```

I have also tried the following command on server A:

```
ssh user@serverB -p 3333
```

But it is giving me the following error:

```
ssh: connect to host serverB port 3333: Connection refused
```

I have also tried the following command on server A:

```
ssh user@serverB -p 4444
```

But it is giving me the following error:

```
ssh: connect to host serverB port 4444: Connection refused
```

I have also tried the following command on server A:

```
ssh
assistant