Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Install from remote machine over ssh

2 views
Skip to first unread message

Harry Putnam

unread,
Feb 21, 2000, 3:00:00 AM2/21/00
to
Group,

Anyone here know how to install an rpm from a remote machine using the
ssh protocol? ( in my case ssh1)

I don't mean to "scp" the package from one machine to the other, then
install. But to leave the package on remote on install on local.

Other rpm commands work with this syntax:

ssh <HOST> rpm -qf /usr/bin/ssh

But these are just using ssh to execute a single command on the remote.

--
To unsubscribe: mail -s unsubscribe rpm-list...@redhat.com < /dev/null


Gordon Messmer

unread,
Feb 21, 2000, 3:00:00 AM2/21/00
to
Harry Putnam wrote:
> I don't mean to "scp" the package from one machine to the other, then
> install. But to leave the package on remote on install on local.

One way or another, you have to get the package from the remote machine
to the local machine. If you don't want do scp it, then you'll end up
ftp'ing it.

rpm can accept url's for packages you want to query or install, but
it'll still copy them to the local machine before it does anything with
them.

MSG

Anders Eriksson

unread,
Feb 22, 2000, 3:00:00 AM2/22/00
to
--==_Exmh_-64532034P
Content-Type: text/plain; charset=us-ascii


It you have a webserver & webproxy at the repository you can set up ssh to do
portforwarding from the installation computer to the proxy. Tell rpm to use
localhost:port as proxy (that can be done, right?)


/Anders

> Group,
>
> Anyone here know how to install an rpm from a remote machine using the
> ssh protocol? ( in my case ssh1)
>

> I don't mean to "scp" the package from one machine to the other, then
> install. But to leave the package on remote on install on local.
>

> Other rpm commands work with this syntax:
>
> ssh <HOST> rpm -qf /usr/bin/ssh
>
> But these are just using ssh to execute a single command on the remote.
>

> --
> To unsubscribe: mail -s unsubscribe rpm-list...@redhat.com < /dev/null
>

--==_Exmh_-64532034P
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Content-Type: text/plain; charset=us-ascii


It you have a webserver & webproxy at the repository you can set up ssh to do
portforwarding from the installation computer to the proxy. Tell rpm to use
localhost:port as proxy (that can be done, right?)


/Anders

> Group,
>
> Anyone here know how to install an rpm from a remote machine using the
> ssh protocol? ( in my case ssh1)
>

> I don't mean to "scp" the package from one machine to the other, then
> install. But to leave the package on remote on install on local.
>

> Other rpm commands work with this syntax:
>
> ssh <HOST> rpm -qf /usr/bin/ssh
>
> But these are just using ssh to execute a single command on the remote.
>

> --
> To unsubscribe: mail -s unsubscribe rpm-list...@redhat.com < /dev/null
>


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: Exmh version 2.1.1 (devel)

iD8DBQE4sj4KgrZLel3En9IRAtilAKCZaVNw9TgBU4lf3CObl7/Q8mBnkACgj9Y/
oRov3nrGyain0W2hKjfArmk=
=izg8
-----END PGP SIGNATURE-----

--==_Exmh_-64532034P--

Harry Putnam

unread,
Feb 22, 2000, 3:00:00 AM2/22/00
to
Anders Eriksson <anders.c...@era.ericsson.se> writes:

> It you have a webserver & webproxy at the repository you can set up ssh to do
> portforwarding from the installation computer to the proxy. Tell rpm to use
> localhost:port as proxy (that can be done, right?)
>

I don't understand what you are proposing here. Not familiar with
proxies either. Can you spell this out a bit, including the "tell
rpm" part?

Anders Eriksson

unread,
Feb 23, 2000, 3:00:00 AM2/23/00
to
--==_Exmh_717393366P
Content-Type: text/plain; charset=us-ascii


Sure can do,

My understanding of the situation: The client (install-target) has an insecure
connection to the repository where the (s)rpms are hosted. How do I install
`on-the-fly` from the remote repository using ssh?

Solution

ssh1 -l <REMOTE-USER-NAME> -f -q -C -L 8080:<REPOSITORY>:81 <REPOSITORY> sleep
10 </dev/null >/dev/null

Assuming the repository have a http-proxy listening on port 81.

start rpm with "--httpproxy localhost --httpport 8080"

That makes rpm do the http stuff with proxies in mind (adds a couple of http
headers) connects to localhost:8080, which gets securely forwarded to
repository:81 which does the connection to repository:80. Using this setup rpm
can actually grab stuff from any URL. All requests will be securely tunnelled
to repository:81 first.

/Anders


--==_Exmh_717393366P
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Content-Type: text/plain; charset=us-ascii


Sure can do,

My understanding of the situation: The client (install-target) has an insecure
connection to the repository where the (s)rpms are hosted. How do I install
`on-the-fly` from the remote repository using ssh?

Solution

ssh1 -l <REMOTE-USER-NAME> -f -q -C -L 8080:<REPOSITORY>:81 <REPOSITORY> sleep
10 </dev/null >/dev/null

Assuming the repository have a http-proxy listening on port 81.

start rpm with "--httpproxy localhost --httpport 8080"

That makes rpm do the http stuff with proxies in mind (adds a couple of http
headers) connects to localhost:8080, which gets securely forwarded to
repository:81 which does the connection to repository:80. Using this setup rpm
can actually grab stuff from any URL. All requests will be securely tunnelled
to repository:81 first.

/Anders

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: Exmh version 2.1.1 (devel)

iD8DBQE4s5sqgrZLel3En9IRAnvYAJ9EJDhDoxhjSKj1bujDZ2Z490ek8wCeK7ZH
tvKdgTXeTrlKRP2dLTjFhQE=
=+M1h
-----END PGP SIGNATURE-----

--==_Exmh_717393366P--

H. Peter Anvin

unread,
Feb 24, 2000, 3:00:00 AM2/24/00
to
Harry Putnam wrote:

>
> Anders Eriksson <anders.c...@era.ericsson.se> writes:
>
> > Sure can do,
> >
> > My understanding of the situation: The client (install-target) has an
> > insecure connection to the repository where the (s)rpms are
> > hosted. How do I install `on-the-fly` from the remote repository using
> > ssh?
>
> Thanks for the details about port forwarding and proxies. Helps me
> understand that process. But I think I was unclear about my query..
>
> I wanted to know if one can install rpms via ssh itself. Certain
> machines I deal with have telnet, ftp, httpd shut off and only allow
> access via ssh.
>
> This may be what you are describing but it doesn't sound like it. I
> want to connect via ssh and install an rpm package residing on a
> remote machine onto my local machine.
>

That's what he's describing. It's as close as you can get.

-hpa

Harry Putnam

unread,
Feb 24, 2000, 3:00:00 AM2/24/00
to
Anders Eriksson <anders.c...@era.ericsson.se> writes:

> Sure can do,
>
> My understanding of the situation: The client (install-target) has an
> insecure connection to the repository where the (s)rpms are
> hosted. How do I install `on-the-fly` from the remote repository using
> ssh?

Thanks for the details about port forwarding and proxies. Helps me
understand that process. But I think I was unclear about my query..

I wanted to know if one can install rpms via ssh itself. Certain
machines I deal with have telnet, ftp, httpd shut off and only allow
access via ssh.

This may be what you are describing but it doesn't sound like it. I
want to connect via ssh and install an rpm package residing on a
remote machine onto my local machine.

--

0 new messages