CONNEXION
  • RetourJeux
    • Sorties
    • Hit Parade
    • Les + populaires
    • Les + attendus
    • Soluces
    • Tous les Jeux
    • Gaming
  • RetourActu Gaming
    • News
    • Astuces
    • Tests
    • Previews
    • Toute l'actu gaming
  • RetourBons plans
    • Bons plans
    • Bons plans Smartphone
    • Bons plans Hardware
    • Bons plans Image et Son
    • Bons plans Amazon
    • Bons plans Cdiscount
    • Bons plans Decathlon
    • Bons plans Fnac
    • Tous les Bons plans
  • RetourJVTech
    • Actus High-Tech
    • Intelligence Artificielle
    • Smartphones
    • Mobilité urbaine
    • Hardware
    • Image et son
    • Tutoriels
    • Tests produits High-Tech
    • Guides d'achat High-Tech
    • JVTech
  • RetourCulture
    • Actus Culture
    • Culture
  • RetourVidéos
    • A la une
    • Gaming Live
    • Vidéos Tests
    • Vidéos Previews
    • Gameplay
    • Trailers
    • Chroniques
    • Replay Web TV
    • Toutes les vidéos
  • RetourForums
    • Hardware PC
    • PS5
    • Switch 2
    • Xbox Series
    • Switch
    • Pokemon pocket
    • FC 25 Ultimate Team
    • League of Legends
    • Tous les Forums
  • PC
  • PS5
  • Xbox Series
  • Switch 2
  • PS4
  • One
  • Switch
  • iOS
  • Android
  • MMO
  • RPG
  • FPS
En ce moment Genshin Impact Valhalla Breath of the wild Animal Crossing GTA 5 Red dead 2
Liste des sujets

Problème avec la commande scp

GlouGlou199
GlouGlou199
Niveau 8
01 octobre 2021 à 11:54:53

Hello,
En gros j'ai besoin de recuperer un fichier qui se trouve dans un certains dossier d'un serveur virtuel ubuntu (auquelle j'ai acces) pour l'avoir sur ma propre machine. mon nom d'acces sur le serv est user1
J'utilise donc :
scp /chemindufichierarecup.txt user1@monip:/home/arnaud (le dossier perso ou je veux le recup)

ca me demande donc le pass d'acces au serveur et apres ca me met "/home/arnaud" is a directory.

Je suis débutant alors j'espere avoir été assez clair. Ca serait génial si que'lqu'un pouvait m'aider. Merci

[Soft]Ware
[Soft]Ware
Niveau 55
01 octobre 2021 à 13:59:48

https://image.noelshack.com/fichiers/2021/25/4/1624564978-fox-1397.png

man scp
scp source target
scp user1@ip:/chemindufichierarecup.txt /nouveauchemin.txt
Jean-Linux57
Jean-Linux57
Niveau 7
01 octobre 2021 à 14:05:00

- Copy a local file to a remote host:
scp path/to/local_file remote_host:path/to/remote_file

- Copy a file from a remote host to a local directory:
scp remote_host:path/to/remote_file path/to/local_directory

- Recursively copy the contents of a directory from a remote host to a local directory:
scp -r remote_host:path/to/remote_directory path/to/local_directory

- Copy a file between two remote hosts transferring through the local host:
scp -3 host1:path/to/remote_file host2:path/to/remote_directory

- Use a specific username when connecting to the remote host:
scp path/to/local_file remote_username@remote_host:path/to/remote_directory

- Use a specific ssh private key for authentication with the remote host:
scp -i ~/.ssh/private_key local_file remote_host:/path/remote_file

Message édité le 01 octobre 2021 à 14:06:10 par Jean-Linux57
GlouGlou199
GlouGlou199
Niveau 8
01 octobre 2021 à 14:23:08

merci les khey mais j'ai tout essayé ca marche jamais. Par ex :
scp user1@*.**.***.***/home/user1/HW/LengthvsQualityScatterPlot_dot.png /home/arnaud

cp: cannot stat 'user1@5.19.234.158/home/user1/HW/LengthvsQualityScatterPlot_dot.png': No such file or directory

Je ne comprend pas, qu'est ce qui cloche ??

[Soft]Ware
[Soft]Ware
Niveau 55
01 octobre 2021 à 14:24:40

Tu as TOUT essayé :hap: :)

Il manque les : :ok:

GlouGlou199
GlouGlou199
Niveau 8
01 octobre 2021 à 14:36:21

Le 01 octobre 2021 à 14:24:40 :
Tu as TOUT essayé :hap: :)

Il manque les : :ok:

bordel t'es un génie khey merci a tous. Je viens de passer 4h sur ca a cause de :
:):

[Soft]Ware
[Soft]Ware
Niveau 55
01 octobre 2021 à 14:45:32

Tu les as mis dans ton premier message pourtant

Sous forums
  • Aide à l'achat Mac
  • Création de sites web
  • Création de Jeux
  • Linux
  • Programmation
  • Internet
  • Steam Deck
  • Macintosh
  • Hardware
La vidéo du moment