Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
xchan014
Explorer
Jump to solution

Unable to remote save snapshot via SCP.

Hi all.

I'm having this weird situation where I can remote save backups (via scp) and could not remote save snapshot (via scp) from gaia to a solarwind scp server hosted on a windows server.

I can also scp files from out to scp server. 

I have included the rsa ssh key in the known_hosts. 

 

Able to advise me?

On the /var/log/message, there an error saying the need to validate connection. 

While on the scp server, the logs were "logon unknown authenticated user x from IP z.z.z.z"

I do not have service contract. So unable to view kb which are advanced and above.

Forgive me for the lack of info, I am typing all this from memory. Will update more info tomorrow. 

*edit* I used solarwind scp server. Don't know if this will helps 

0 Kudos
1 Solution

Accepted Solutions
emmap
Employee
Employee

There's a few search results for that, one of them being to remove and re-add the SSH feature on the Windows server. So that might be worth a go.

View solution in original post

16 Replies
the_rock
Legend
Legend

Hey @xchan014 

Are there any logs in smart console you can send that are related to this, please?

Andy

0 Kudos
xchan014
Explorer

Which log can I look into?

CPbackup.elg doesn't seem to show it

0 Kudos
the_rock
Legend
Legend

Is there anything in smart console logs at all?

Andy

0 Kudos
xchan014
Explorer

Sorry. I am not quite sure what you mean by smart console logs.. is it traffic logs?

Other than firewall rule allowed for port 22. Nothing related to scp is found. 

0 Kudos
the_rock
Legend
Legend

Yes, sorry, thats what I meant.

Andy

0 Kudos
Oliver_Fink
Advisor
Advisor

From the logs it looks like a wrong user name or using wrong credentials. Can you share the exact entry from /var/log/messages?

Sometimes file size limitation on the target host is the problem. Can you verify with a linux target as SCP server? Or even generate a big file ("fallocate -l 4g test.file") and transfer that manually via SCP? But that does not match exactly to what you wrote about the log messages.

the_rock
Legend
Legend

Yes...I also think it might be worth confirming the content of /etc/ssh/ssh_config to see which user is used for scp backup.

Andy

0 Kudos
xchan014
Explorer

I am able to use SCP commands to save a file to a remote scp server on windows server. But it fail when using " set snapshot-onetime export" or via scheduled remote save snapshot from Gaia. 

Let me see if I can replicate the issues on a separate VM at home after work tonight.

*Edited* I have tried using Linux as a SCP server. It seem to work as the error return is different. It's complaining about space in /var/log after using snapshot-onetime. I assume that it work after resolving that space issue problem. It seem that windows does not play nicely with Linux. 

I have question generally on how saving snapshot remotely via scp works.

Do I need to have enough space locally on the gaia despite saving the snapshot remotely?

the_rock
Legend
Legend

I have fully working R82 lab, so can try reproduce this tomorrow.

Best,

Andy

0 Kudos
emmap
Employee
Employee

Try SSH'ing to the server from the gateway that you're trying to save it to, and accept the fingerprint. 

(1)
the_rock
Legend
Legend

Excellent idea, that should work.

0 Kudos
xchan014
Explorer

Hi enmap.

I have tried what you have suggested. I got shell request failed on channel 0.

Does this mean that the issue is at the windows scp server side?

0 Kudos
the_rock
Legend
Legend

To me, personally, thats what it looks like...

0 Kudos
emmap
Employee
Employee

There's a few search results for that, one of them being to remove and re-add the SSH feature on the Windows server. So that might be worth a go.

xchan014
Explorer

Hi. I think you are right that i should reinstall openssh-server. I try using an ftp server preinstalled in window server and it give off an expected error. 

I also just found out from solarwind webpage that their scp server cannot transfer anything more than 4gb. This maybe be the reason why scp backup can and not scp snapshot. 

Thanks, enmap. 

0 Kudos
the_rock
Legend
Legend

Glad you got it working!

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events