LinuxQuestions.org
Review your favorite Linux distribution.
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 06-27-2012, 11:10 AM   #1
rany
LQ Newbie
 
Registered: Jan 2009
Posts: 17

Rep: Reputation: 0
YUM with sftp server


Hi,

My repositories are located at SFTP server.
I want to know, how can clients use YUM utilities, inorder to manage their packages.
 
Old 06-27-2012, 12:11 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
I am not sure I follow you, did you actually set up a yum repository on your SFTP server or are your clients just SFTP'ing packages from the server?
 
Old 06-28-2012, 03:02 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by rany View Post
My repositories are located at SFTP server.
I want to know, how can clients use YUM utilities, inorder to manage their packages.
Searching Yum GIT shows me it doesn't support sftp://-like URI's. Unless you can't change, for hopefully compelling reasons, you will have to curse yourself when you experience related glitches, put up with potentially reduced functionality and throughput and put in way more effort to reach your goal.
So if you can changing your setup to use FTP instead would be less error-prone, easier and efficient.

Three methods to look into if you (think you should) persist:
- SSHFS: Using a pass-phrase-less, IP-range-confined, unprivileged SSH account chrooted in the repository tree, you could make FUSE-SSHFS mount the remote tree locally and use a file:// local repo configuration.
- DeleGate/9.0.4 supports gatewaying SFTP/SSH server for FTP or HTTP clients so you can still use a ftp:// repo configuration.
- Rsync-over-SSH the repo locally and use a file:// local repo configuration file.
 
1 members found this post helpful.
Old 06-29-2012, 05:51 AM   #4
rany
LQ Newbie
 
Registered: Jan 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Thank for you response
I will present with more details what are my needs:
I have equipment with Linux distribution on it.
I would like to have abilites to upgrade SW packages, from both secure (SFTP) and non secure (FTP) servers.
When the upgrade is needed, the user should define the transfer attributes; ip, path, user name, password and protocol type.

Now, regard your solutions:
Option 1 (sshfs) - The mount solution has major differ function than regular file transfer operation
Option 2 - will not enable me to function simultaneous FTP other operations
Option 3 - the same problem idea like option 1

Do you have any other idea?
 
Old 06-29-2012, 09:54 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by rany View Post
secure (SFTP) and non secure (FTP) servers
No, that's FTPS (you know, like HTTPS, POP3S and IMAPS). SFTP is related to SSH.


Quote:
Originally Posted by rany View Post
When the upgrade is needed, the user should define the transfer attributes; ip, path, user name, password and protocol type.
The procedure you outlined is
0) cumbersome because with a properly configured configuration file no user should need to present that information, it does come across as
1) untrustworthy, potentially resulting in an incomplete update or worse because common usage should be to just run 'yum update' or 'yum update [packagename]' and probably
2) an erosion of the package management best practices the distribution did set.



Quote:
Originally Posted by rany View Post
Do you have any other idea?
Unless you forgot to mention even more details you best use anonymous FTP.
If Yum doesn't deal with FTPS then either don't use FTPS or bridge it to regular anon FTP.

Last edited by unSpawn; 06-29-2012 at 09:55 AM. Reason: //More *is* more
 
1 members found this post helpful.
Old 07-05-2012, 06:14 AM   #6
rany
LQ Newbie
 
Registered: Jan 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Hi,

My application must support SFTP server (over SSH) and the U/I for the user need to be like FTP configuration settings.

As I know, YUM uses Curl library for it trnasport layer.
This library support also SFTP protocol.
I wounder, how much effort does it needed, for making changes in YUM code, in order to support also SFTP protocol.
Do you have any quess for this ?
 
  


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
Yum: Local yum server error burak Linux - General 6 06-20-2012 11:22 AM
Sftp connection between Windows server and linux server vikash.thbs Linux - Server 2 01-02-2012 10:25 AM
Sftp server saran_redhat Linux - Newbie 2 12-03-2010 07:43 AM
cannot login into SFTP server using Net::SFTP cccc Programming 1 10-31-2007 06:23 AM
Files truncated by sftp/sftp-server at 65kb gato Linux - Networking 1 12-18-2003 10:29 AM

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

All times are GMT -5. The time now is 03:15 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
Open Source Consulting | Domain Registration