
Hi guys, I have an ssh connection to a remote server (ServerA, public IP) from which I then ssh to another box (ServerB) within the same network. How can I copy files from my laptop to ServerB considering I have no write access to ServerA?

use scp (man scp) ./Ok3ch On Fri, Oct 11, 2013 at 8:39 AM, Tech List Kenya <techlistkenya@gmail.com>wrote:
Hi guys,
I have an ssh connection to a remote server (ServerA, public IP) from which I then ssh to another box (ServerB) within the same network.
How can I copy files from my laptop to ServerB considering I have no write access to ServerA?
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

I don't think SCP will work in this case. The laptop and the final server are not directly connected On Fri, Oct 11, 2013 at 9:03 AM, Okechukwu <okechukwu@gmail.com> wrote:
use scp (man scp)
./Ok3ch
On Fri, Oct 11, 2013 at 8:39 AM, Tech List Kenya <techlistkenya@gmail.com>wrote:
Hi guys,
I have an ssh connection to a remote server (ServerA, public IP) from which I then ssh to another box (ServerB) within the same network.
How can I copy files from my laptop to ServerB considering I have no write access to ServerA?
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

Even with scp its difficult since you need to copy to server A (which you have no write permissions) then you copy the the computer you are using. Tafuta write access on serverA and you will be able. Or try a long shot. Make a VPN connection from server B back to the router you are connected to that way you will be on the same network and you can transfer files easily without the need of server A. On Fri, Oct 11, 2013 at 9:03 AM, Okechukwu <okechukwu@gmail.com> wrote:
use scp (man scp)
./Ok3ch
On Fri, Oct 11, 2013 at 8:39 AM, Tech List Kenya <techlistkenya@gmail.com>wrote:
Hi guys,
I have an ssh connection to a remote server (ServerA, public IP) from which I then ssh to another box (ServerB) within the same network.
How can I copy files from my laptop to ServerB considering I have no write access to ServerA?
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Regards, Job Njogu Muriuki, Phone: (+254) - 722906324 | 736333075 Skype: heviejob | Yahoo: heviejob Address: 42665 00100 Nrb

Thanks Muriuki. Let me talk to the client to see if they can create the VPN. I don't see how else I can copy files across On Fri, Oct 11, 2013 at 9:20 AM, Job Muriuki <muriukin@gmail.com> wrote:
Even with scp its difficult since you need to copy to server A (which you have no write permissions) then you copy the the computer you are using. Tafuta write access on serverA and you will be able.
Or try a long shot. Make a VPN connection from server B back to the router you are connected to that way you will be on the same network and you can transfer files easily without the need of server A.
On Fri, Oct 11, 2013 at 9:03 AM, Okechukwu <okechukwu@gmail.com> wrote:
use scp (man scp)
./Ok3ch
On Fri, Oct 11, 2013 at 8:39 AM, Tech List Kenya <techlistkenya@gmail.com
wrote:
Hi guys,
I have an ssh connection to a remote server (ServerA, public IP) from which I then ssh to another box (ServerB) within the same network.
How can I copy files from my laptop to ServerB considering I have no write access to ServerA?
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Regards, Job Njogu Muriuki,
Phone: (+254) - 722906324 | 736333075 Skype: heviejob | Yahoo: heviejob
Address: 42665 00100 Nrb
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

You could do a port forward on your jump server then fire rsync or scp frm your machine. On 11 Oct 2013 09:23, "Tech List Kenya" <techlistkenya@gmail.com> wrote:
Thanks Muriuki. Let me talk to the client to see if they can create the VPN. I don't see how else I can copy files across
On Fri, Oct 11, 2013 at 9:20 AM, Job Muriuki <muriukin@gmail.com> wrote:
Even with scp its difficult since you need to copy to server A (which you have no write permissions) then you copy the the computer you are using. Tafuta write access on serverA and you will be able.
Or try a long shot. Make a VPN connection from server B back to the router you are connected to that way you will be on the same network and you can transfer files easily without the need of server A.
On Fri, Oct 11, 2013 at 9:03 AM, Okechukwu <okechukwu@gmail.com> wrote:
use scp (man scp)
./Ok3ch
On Fri, Oct 11, 2013 at 8:39 AM, Tech List Kenya < techlistkenya@gmail.com> wrote:
Hi guys,
I have an ssh connection to a remote server (ServerA, public IP) from which I then ssh to another box (ServerB) within the same network.
How can I copy files from my laptop to ServerB considering I have no write access to ServerA?
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Regards, Job Njogu Muriuki,
Phone: (+254) - 722906324 | 736333075 Skype: heviejob | Yahoo: heviejob
Address: 42665 00100 Nrb
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

Yep, ssh tunneling is what I need. Thank you all! On Fri, Oct 11, 2013 at 9:42 AM, Alex Nyalita <nyalita@gmail.com> wrote:
You could do a port forward on your jump server then fire rsync or scp frm your machine. On 11 Oct 2013 09:23, "Tech List Kenya" <techlistkenya@gmail.com> wrote:
Thanks Muriuki. Let me talk to the client to see if they can create the VPN. I don't see how else I can copy files across
On Fri, Oct 11, 2013 at 9:20 AM, Job Muriuki <muriukin@gmail.com> wrote:
Even with scp its difficult since you need to copy to server A (which you have no write permissions) then you copy the the computer you are using. Tafuta write access on serverA and you will be able.
Or try a long shot. Make a VPN connection from server B back to the router you are connected to that way you will be on the same network and you can transfer files easily without the need of server A.
On Fri, Oct 11, 2013 at 9:03 AM, Okechukwu <okechukwu@gmail.com> wrote:
use scp (man scp)
./Ok3ch
On Fri, Oct 11, 2013 at 8:39 AM, Tech List Kenya < techlistkenya@gmail.com> wrote:
Hi guys,
I have an ssh connection to a remote server (ServerA, public IP) from which I then ssh to another box (ServerB) within the same network.
How can I copy files from my laptop to ServerB considering I have no write access to ServerA?
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Regards, Job Njogu Muriuki,
Phone: (+254) - 722906324 | 736333075 Skype: heviejob | Yahoo: heviejob
Address: 42665 00100 Nrb
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

Portforwarding my friend, then scp - if you go to stackoverflow.com you will certainly get a solution using this ./Ok3ch On Fri, Oct 11, 2013 at 9:55 AM, Tech List Kenya <techlistkenya@gmail.com>wrote:
Yep, ssh tunneling is what I need. Thank you all!
On Fri, Oct 11, 2013 at 9:42 AM, Alex Nyalita <nyalita@gmail.com> wrote:
You could do a port forward on your jump server then fire rsync or scp frm your machine. On 11 Oct 2013 09:23, "Tech List Kenya" <techlistkenya@gmail.com> wrote:
Thanks Muriuki. Let me talk to the client to see if they can create the VPN. I don't see how else I can copy files across
On Fri, Oct 11, 2013 at 9:20 AM, Job Muriuki <muriukin@gmail.com> wrote:
Even with scp its difficult since you need to copy to server A (which you have no write permissions) then you copy the the computer you are using. Tafuta write access on serverA and you will be able.
Or try a long shot. Make a VPN connection from server B back to the router you are connected to that way you will be on the same network and you can transfer files easily without the need of server A.
On Fri, Oct 11, 2013 at 9:03 AM, Okechukwu <okechukwu@gmail.com> wrote:
use scp (man scp)
./Ok3ch
On Fri, Oct 11, 2013 at 8:39 AM, Tech List Kenya < techlistkenya@gmail.com> wrote:
Hi guys,
I have an ssh connection to a remote server (ServerA, public IP) from which I then ssh to another box (ServerB) within the same network.
How can I copy files from my laptop to ServerB considering I have no write access to ServerA?
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Regards, Job Njogu Muriuki,
Phone: (+254) - 722906324 | 736333075 Skype: heviejob | Yahoo: heviejob
Address: 42665 00100 Nrb
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

If SSH is enabled, its easy to use SFTP http://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol On Fri, Oct 11, 2013 at 8:39 AM, Tech List Kenya <techlistkenya@gmail.com>wrote:
Hi guys,
I have an ssh connection to a remote server (ServerA, public IP) from which I then ssh to another box (ServerB) within the same network.
How can I copy files from my laptop to ServerB considering I have no write access to ServerA?
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

You can use an SSH tunnel. Here's an example: http://stackoverflow.com/a/11862186/26235 But instead of using ssh, you use scp. Here's the actual command: http://stackoverflow.com/a/9139670/26235 -- Kili.io - OpenStack for Africa: kili.io Musings: twitter.com/varud <https://twitter.com/varud> About Adam: www.linkedin.com/in/adamcnelson On Fri, Oct 11, 2013 at 9:33 AM, Agosta Liko <agostal@gmail.com> wrote:
If SSH is enabled, its easy to use SFTP
http://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol
On Fri, Oct 11, 2013 at 8:39 AM, Tech List Kenya <techlistkenya@gmail.com>wrote:
Hi guys,
I have an ssh connection to a remote server (ServerA, public IP) from which I then ssh to another box (ServerB) within the same network.
How can I copy files from my laptop to ServerB considering I have no write access to ServerA?
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
participants (6)
-
Adam Nelson
-
Agosta Liko
-
Alex Nyalita
-
Job Muriuki
-
Okechukwu
-
Tech List Kenya