Support for public key & alternate ports

1,654 views
Skip to first unread message

Alphazo

unread,
Jan 21, 2011, 11:44:10 AM1/21/11
to sshuttle
I barely use password these days to access my SSH servers. I much
prefer RSA keys so I don't have to memorize long passwords.
Does sshuttle support RSA keys rather than passwords? Can alternate
ports be specified as well ?
It would be nice if it could simply use the servers defined in ssh
config file found in ~/.ssh/config like:

Host remotegateway
User alpha
Hostname remote.gateway.com
# LocalForward 52340 192.168.0.28:22
# DynamicForward 2080
Port 443
IdentityFile ~/.ssh/id_remote_rsa

For those I simply connect by using "ssh remotegateway"

Axel Beckert

unread,
Jan 21, 2011, 12:20:14 PM1/21/11
to sshuttle
Hi,

On Fri, Jan 21, 2011 at 08:44:10AM -0800, Alphazo wrote:
> I barely use password these days to access my SSH servers. I much
> prefer RSA keys so I don't have to memorize long passwords.

sshuttle works perfect for me with SSH keys.

> Does sshuttle support RSA keys rather than passwords?

I don't know of any (commandline) application, which uses ssh as
transport backend, which does not support SSH keys or SSH confguration
via .ssh/config

> Can alternate ports be specified as well ?

Alternate SSH ports should work via .ssh/config.

> It would be nice if it could simply use the servers defined in ssh
> config file found in ~/.ssh/config like:
>
> Host remotegateway
> User alpha
> Hostname remote.gateway.com
> # LocalForward 52340 192.168.0.28:22
> # DynamicForward 2080
> Port 443
> IdentityFile ~/.ssh/id_remote_rsa
>
> For those I simply connect by using "ssh remotegateway"

Should work. Does it not work for you?

Kind regards, Axel
--
/~\ Plain Text Ribbon Campaign | Axel Beckert
\ / Say No to HTML in E-Mail and News | a...@deuxchevaux.org (Mail)
X See http://www.asciiribbon.org/ | a...@noone.org (Mail+Jabber)
/ \ I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)

Alphazo

unread,
Jan 21, 2011, 5:06:07 PM1/21/11
to sshuttle
You were right I can use sshuttle with just the a server name defined
in my ssh config file.

Now how can I do it from the command line without using a ssh config
file? Looks like I can pass the port number using "-r user@sshgateway:
443". But how can I specify a RSA private key from there?

Thanks
Alphazo

Avery Pennarun

unread,
Jan 22, 2011, 1:36:31 AM1/22/11
to Alphazo, sshuttle

If your ssh setup is so complicated that you need to specify a
particular ssh key (rather than just using the same ssh key on every
remote machine) then you should just use a .ssh/config and cut your
losses.

Or you could try using ssh-agent.

Avery

Reply all
Reply to author
Forward
0 new messages