ssh에서 파일전송?

ddoman의 이미지

한텀으로 원격지의 컴퓨터에 ssh로 로그인하여
데몬들을 최신으로 update하는 작업을 하고있습니다만,
콘솔상의 ssh client에서는 어떻게 전송을 해야할지 모르겠더군요.

telnet 에서는 ztelnet 을 이용하여 원격지에서 sz혹은 rz를 사용하여
Ctrl + ] 모드에서 명령어를 입력하여 해결했지만

ssh에서는 어떻게 하면 파일전송을 할수있는지 궁금합니다.

수고하세요~

bagagy의 이미지

Quote:
scp

위에서 인증키를 리모트 서버에 복사할때 사용한 scp에 대해서 알아보자

예를 들어, 복사하려는 파일명이 'dumb' 라고 하고 접속하려는 원격 서버의 주소는 www.foobar.com, 당신의 쉘 계정은 babo 라고 한다면

dumb 파일을 www.foobar.com 의 babo 계정 홈 디렉토리에 복사하기

[foo@home silver]$ scp dumb babo@www.foobar.com:.

www.foobar.com 의 babo 계정 홈 디렉토리에 있는 dumb 파일을 로컬로 복사하기

[foo@home silver]$ scp babo@www.foobar.com:dumb .

쓰려다가 귀차니즘을 못 이기고 복사를.. -_-;;;

그냥 열심히하자.
그러면 뭔가 있겠지.

ironiris의 이미지

저기... 거시기..... 로컬PC에 있는 파일을(윈도우겠죠?) 서버로 전송하는 방법을 물어보는것 같은디...
SSH Secure Shell 을 설치하시게 되면
SSH Secure File Transfer Client 이놈도 같이 깔리는디.. 역시 ssh 로 접속하는 놈인디...
파일전송이 잘됩니다. 꼭 ftp 쓰는 것처럼 사용할수 있습니다.
역시 telnet, ftp 막아버렸을때는 이놈이 짱입니다.
이거 귀찮으시면 Xshell 이라는 놈이 있는데.. ssh 상에서 zmodem 을 지원합니다.

eunjea의 이미지

조금 덧 붙여서 디렉토리와 파일의 속성(심볼릭 링크따위의)를
그대로 유지하면서 전송 하려면 다음과 같이 해도 됩니다.

예: foobar@domain.com 의 test 디렉토리를 이쪽으로 전송할때.

scp -C foobar@domain.com tar cf - test | tar xvf -

eunjea의 이미지

ironiris wrote:
저기... 거시기..... 로컬PC에 있는 파일을(윈도우겠죠?) 서버로 전송하는 방법을 물어보는것 같은디...
SSH Secure Shell 을 설치하시게 되면
SSH Secure File Transfer Client 이놈도 같이 깔리는디.. 역시 ssh 로 접속하는 놈인디...
파일전송이 잘됩니다. 꼭 ftp 쓰는 것처럼 사용할수 있습니다.
역시 telnet, ftp 막아버렸을때는 이놈이 짱입니다.
이거 귀찮으시면 Xshell 이라는 놈이 있는데.. ssh 상에서 zmodem 을 지원합니다.

윈도용은 이것도 괜찮습니다.
http://winscp.sourceforge.net/eng/

그런데 원 질문자는 한텀이라고 하셨는데요.
윈도우용 한텀도 있나요?

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.