LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-13-2018, 08:53 AM   #1
navinmba@hotmail.com
LQ Newbie
 
Registered: Jul 2018
Posts: 4

Rep: Reputation: Disabled
Question SSH update via Proxy server


I have a Linux based application which connects(SSH) to the internet for updating and gets the update file through SCP. Is it possible to make the connection through the proxy server? So If the application prompts for update through the internet, It should reach the server through the squid proxy server. I am not sure whether we can process this. Kindly help. And most important is the Linux application has terminal access only.

Last edited by navinmba@hotmail.com; 07-13-2018 at 09:01 AM.
 
Old 07-13-2018, 12:17 PM   #2
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Ubuntu, Devuan, OpenBSD
Posts: 3,201
Blog Entries: 3

Rep: Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408
It's best if the connection is made via SSH all the way through. If the bastion host also happens to be running Squid then that it fine as long as the system it is on allows SSH. If you have a recent version of OpenSSH, then you can use ProxyJump

Code:
Host update
        Hostname update.example.com
        ProxyJump navinmba@bastion.example.com:22
Otherwise if you are talking about trying to tunnel SSH over HTTP or HTTPS then you shoud look at corkscew.

Code:
Host update 
        Hostname update.example.com
        ProxyCommand /usr/bin/corkscrew proxy.example.com 8080 %h %p
See "man ssh_config"

Please say more about the distro (including version) you have on the client, the distro (including version) you have on the proxy and whether it has SSH or just Squid, and the distro (including version) on the target machine.
 
Old 07-16-2018, 04:38 AM   #3
navinmba@hotmail.com
LQ Newbie
 
Registered: Jul 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you for your response. client distro is Red Hat 4.6 and the proxy server that I'm using is Just Squid. I've enabled the acl SSL_ports 22 and Safe_ports 22 in Squid. But it doesn't help. And I'm not sure abt the target machine distro.
 
Old 07-16-2018, 04:45 AM   #4
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Ubuntu, Devuan, OpenBSD
Posts: 3,201
Blog Entries: 3

Rep: Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408
Quote:
Originally Posted by navinmba@hotmail.com View Post
client distro is Red Hat 4.6 and ...
Ok. The first step is to contact Red Hat support, since 4.6 reached end of life around 8 years ago. That's not a step which can be skipped over. Write back once that's settled.
 
Old 07-17-2018, 04:37 AM   #5
navinmba@hotmail.com
LQ Newbie
 
Registered: Jul 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you. I will do that first.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening a proxy via SSH behind NAT (router), with a middle man (Server ) to broker the connection between clients and proxy providers. ChronicUser Linux - Server 3 02-16-2017 07:31 AM
SSH proxy server noir911 Linux - Server 1 08-06-2009 09:04 PM
SSH Proxy Server Pengoo Linux - Newbie 4 06-02-2009 05:21 PM
ssh server proxy teayourself Linux - Newbie 3 05-07-2008 01:46 AM
Trying to SSH through a proxy server Scotteh Linux - Networking 10 05-31-2006 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration