Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> SSH SFTP Kopiowanie katalogu z innego serwera SFTP
markuz
post 14.01.2015, 11:58:05
Post #1





Grupa: Zarejestrowani
Postów: 1 240
Pomógł: 278
Dołączył: 11.03.2008

Ostrzeżenie: (0%)
-----


Witam,

Jakiej komendy użyć do skopiowania całego katalogu z innego serwera SFTP do aktualnego serwera SFTP?

Serwer - Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-40-generic x86_64)

Ten post edytował markuz 14.01.2015, 11:59:11


--------------------
Go to the top of the page
+Quote Post
Pyton_000
post 14.01.2015, 12:04:09
Post #2





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

Ostrzeżenie: (0%)
-----


sftp
Go to the top of the page
+Quote Post
ohm
post 14.01.2015, 12:08:40
Post #3





Grupa: Zarejestrowani
Postów: 623
Pomógł: 144
Dołączył: 22.12.2010

Ostrzeżenie: (0%)
-----


http://www.hypexr.org/linux_scp_help.php
Go to the top of the page
+Quote Post
markuz
post 14.01.2015, 12:12:35
Post #4





Grupa: Zarejestrowani
Postów: 1 240
Pomógł: 278
Dołączył: 11.03.2008

Ostrzeżenie: (0%)
-----


Kod
root@xxx:/xxx# scp -r katalog-do-skopiowania user@host.com:/home/www/
/etc/ssh/ssh_config: line 54: Bad configuration option: ClientAliveInterval
/etc/ssh/ssh_config: terminating, 1 bad configuration options
lost connection


Mógłbym prosić o jakiś przykład? Jestem cienki w tych sprawach.


--------------------
Go to the top of the page
+Quote Post
Pyton_000
post 14.01.2015, 12:14:41
Post #5





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

Ostrzeżenie: (0%)
-----


odwrotenie

scp -r user@host:/katalog/zdalny katalog-lokalny

ew. przez sftp jak podałem
Go to the top of the page
+Quote Post
markuz
post 14.01.2015, 12:16:05
Post #6





Grupa: Zarejestrowani
Postów: 1 240
Pomógł: 278
Dołączył: 11.03.2008

Ostrzeżenie: (0%)
-----


To samo. Przy sftp ten sam błąd:

Cytat
/etc/ssh/ssh_config: line 54: Bad configuration option: ClientAliveInterval
/etc/ssh/ssh_config: terminating, 1 bad configuration options


--------------------
Go to the top of the page
+Quote Post
Pyton_000
post 14.01.2015, 12:18:33
Post #7





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

Ostrzeżenie: (0%)
-----


no to wleź do tego pliku i zobacz co tam masz.
Go to the top of the page
+Quote Post
markuz
post 14.01.2015, 12:21:57
Post #8





Grupa: Zarejestrowani
Postów: 1 240
Pomógł: 278
Dołączył: 11.03.2008

Ostrzeżenie: (0%)
-----


Kod
ClientAliveInterval 10800


Dobra. Chyba zrobię to ręcznie, nie chce niczego popsuć na serwerze.

Ten post edytował markuz 14.01.2015, 12:22:26


--------------------
Go to the top of the page
+Quote Post
Pyton_000
post 14.01.2015, 12:43:02
Post #9





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

Ostrzeżenie: (0%)
-----


zakomentuj to dodając # na początku i zobacz czy działa, ew. zmniejsz do 3600
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 4.05.2025 - 08:38