Results 1 to 6 of 6

Thread: SSH forwarding to MacBook

  1. #1
    Join Date
    Mar 2010
    Posts
    184

    SSH forwarding to MacBook

    Hello,
    I log into SSH on a remote server from my macbook. I would then transfer a file on my macbook, then using the command "scp". By cons for the name of the remote machine what do I use my IP address? It does not work, is there something to configure on Mac OS X? If you know then please help me with this. Thanks in advance.
    www.techarena.in

  2. #2
    Join Date
    Nov 2009
    Posts
    333

    Re: SSH forwarding to MacBook

    Hello,
    Is this what you are trying to do?
    Code:
    scp SourceFile use@host:directory/TargetFile
    while logged on the machine's source file and copying therefore host. If you activate the option remote session on your computer means that you authorized the outside to connect to your machine, not really what you want if I understand correctly.

  3. #3
    Join Date
    Apr 2008
    Posts
    264

    Re: SSH forwarding to MacBook

    Hello,
    Even i am trying to forward ssh macbook. I thought that this activation was necessary to send a file from the outside via SSH. I tried what you said:
    Here is what I have tried.
    Code:
    scp test.c monlogin @ tstIP: Desktop / test.c
    with tstIP obtained through utrace, but still nothing (it is blocked then says connection lost). I managed to do what I wanted with Cyberduck, but I will like to do Terminal.

  4. #4
    Join Date
    Nov 2009
    Posts
    347

    Re: SSH forwarding to MacBook

    Hello,
    Can you try the other way:
    Code:
    scp server: file local_file
    This avoids having to enable ssh access on your machine. In your case since the command line in your MacBook:
    Code:
    scp testlogin @ server_name: file / test.c test.c
    In case of failure using the-v (verbose output) and copy / paste the output so we can help.

  5. #5
    Join Date
    Nov 2009
    Posts
    335

    Re: SSH forwarding to MacBook

    Hello,
    Typically, an SSH server also serves as SFTP server. Connect with CyberDuck on the server, and you should be able to repatriate your file. If you must use the scp command with the terminal, the IP address is the server in question. I guess you have done some home work regarding the topic or more precisely the options used the int he ssh protocol.

  6. #6
    Join Date
    Nov 2009
    Posts
    330

    Re: SSH forwarding to MacBook

    Hello,
    You can try playing with ssh tunnels
    ssh-L2222: second_server: 22 @ user_premier_server premier_server
    keep the connection open
    then to test
    Code:
    ssh-p 2222 @ localhost user_second_server you to connect
    scp-P 2222 user_second_server @ localhost: folder / file file for transfer
    If you use a regular file transfer it is possible to automate the first connection to create the tunnel (you have to use a script and launch to do some kind of demon)

Similar Threads

  1. Replies: 3
    Last Post: 13-11-2011, 07:45 AM
  2. VPN vs Port forwarding
    By ODTech in forum Networking & Security
    Replies: 1
    Last Post: 29-10-2010, 03:27 AM
  3. DNS Forwarding and Aliases
    By Wyvern in forum Networking & Security
    Replies: 3
    Last Post: 03-10-2009, 08:11 PM
  4. Port Forwarding Help Please.
    By Zelos37 in forum Networking & Security
    Replies: 6
    Last Post: 20-01-2009, 10:03 PM
  5. Port forwarding
    By Rover in forum Networking & Security
    Replies: 7
    Last Post: 15-10-2008, 07:15 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,032,277.14571 seconds with 16 queries