Im looking forward to use this app in the future, my question is there
anyway to setup some profiles so I can quickly connect to multiple ssh
servers without having to type much?
For example, I have few servers I need to type the password and "su -"
into it, does this app provides some sort of option to execute this
kind of commands or any other commands automatically based on the
profile? If you have a paid version I will be more than happy to pay
for it if it includes such features.
Thanks in advance.
Select the (unusually named) "Post-login automation". Here you can
basically write a script. Make sure to end it with a blank line to
send a newline and make the shell process the (last) command. Anything
you can do with a shell script you can basically do here. Be very
careful of using passwords, though, as anything you enter here will
probably end up in your command history on the remote host.
I don't know of any way to clone whole entries, but you can certainly
copy the script part and paste it into another entry for each host.
For any serious automation, I'd recommend ssh keys *between* the hosts
you are connecting to, with scripts living on the hosts and merely
called by connectbot. Editing the scripts on a phone is never going to
be as smooth as using a full keyboard.
I use to connect to multiple servers through a SSH gateway and need to
type few "su user, su -" passwords on the way so if you can this to
put this feature on the next release would be superb.
Thanks again for the quick support.
> > Thanks in advance.- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -
The feature that lacks of is the option to have the ability to send ie: a command/typed chars after a expected response from the server ie: "Password:" some sort like Xshell for PC has.
Alexander -- ↯ Lifestream (Twitter, Blog, …) ↣ http://sup.skwar.me/ ↯ ↯ Chat (Jabber/Google Talk) ↣ a...@skwar.me ; Twitter: @alexs77 ↯
On 21 nov, 07:50, Alexander Skwar <a.sk...@gmail.com> wrote:
> Am 21.11.2011 03:57, schrieb nickzoid:> The feature that lacks of is the option to have the ability to send
> > ie: a command/typed chars after a expected response from the server
> > ie: "Password:" some sort like Xshell for PC has.
>
> You might want to have a look at the "expect" tool ?http://linux.die.net/man/1/expect
>
> Alexander
> --
> ? Lifestream (Twitter, Blog, ...) ?http://sup.skwar.me/ ?
> ? Chat (Jabber/Google Talk) ? a...@skwar.me ; Twitter: @alexs77 ?
I tried the expect command but unfortunately doesnt seem to do what I
need since I need a script for each server.
I need to connect to a box through connectbot and then once inside I
need to connect to another box (the real destination server), the
first one its some sort of gateway I need to use.
What would you suggest?
Thanks in advance.
> > ? Chat (Jabber/Google Talk) ? a...@skwar.me ; Twitter: @alexs77 ?- Ocultar texto de la cita -
On Mon, Nov 28, 2011 at 19:42, nickzoid <nick...@gmail.com> wrote:
> I tried the expect command but unfortunately doesnt seem to do what I
> need since I need a script for each server.
Why doesn't it do what you need? Why do you say, that it is a
problem, that you need a script for each server?
Your problem description is not so clear… :)
> I need to connect to a box through connectbot and then once inside I
> need to connect to another box (the real destination server), the
> first one its some sort of gateway I need to use.
Okay.
> What would you suggest?
Uhm, "expect"? Maybe you could post what you tried, what you
got and what you expected to get?
> Thanks in advance.
No problem :-)
Cheers,
Alexander
Hey guys,
I tried the expect command but unfortunately doesnt seem to do what I
need since I need a script for each server.
I need to connect to a box through connectbot and then once inside I
need to connect to another box (the real destination server), the
first one its some sort of gateway I need to use.
What would you suggest?
> Thanks in advance.
No problem :-)
Cheers,
Alexander
--
You received this message because you are subscribed to the Google Groups "ConnectBot Users" group.
To post to this group, send email to connectb...@googlegroups.com.
To unsubscribe from this group, send email to connectbot-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/connectbot-users?hl=en.
Hey guys,
What would you suggest?
Thanks in advance.
--
> I need to connect to a box through connectbot and then once inside I
> need to connect to another box (the real destination server), the
> first one its some sort of gateway I need to use.
Set up port forwarding in the connection for the first box that will let you connect through to the real destination. I use this for work (through an SSH proxy) to get to my desktop with VNC or plain ssh, and to the IMAP server for work email.
Your apps will connect to localhost:nnnn where nnnn is the local port you've forwarded.
Dennis
Sent from my Nook Color with K-9 Mail. Please excuse my brevity.
I appreciate all the responses and the help, many thanks.
I have to say that today I was in a rush and I have explained the
method Im trying to setup incorrectly, apologizes for that.
This is exactly what Im trying to do, From connectbot I connect to my
remote (my own) server, from there I have to connect to a server meant
to be used as a gateway (from work) and from there I need to connect
to the real destination server. You would say why dont avoid my own
server and connect directly to the remote gateway server, I simply
cant do that.
I have tried to find documentation about the ssh agent and port
forwarding for connectbot as I didnt understand how these methods
would work although I couldnt find any documentation explaining how
this works.
Thanks again and sorry for being such a pain!
On 28 nov, 21:03, Dennis Rockwell <prr65...@gmail.com> wrote:
home
gateway
dest1
dest2
dest3
'home' config: connect home:22, forward 2222:gateway:22
login to home for forwarding local:2222 to gateway:22 (through home IP)
'gateway' config: connect localhost:2222, multiple forward
2223:dest1:22
2224:dest2:22
2225:dest3:22
login to gateway (forwarded by 'home') for forwarding by 'gateway' to
dest1, dest2, etc.
'dest1' config: connect localhost:2223
login to dest1 (forwarded by 'gateway' which is a local connect forwarded by home)
And you are at dest1
ditto for dest2, dest3.
I haven't tried this but you get the idea.
A confusing setup requires a confusing configuration:(
Good luck.
----- Original Message -----
From: "nickzoid" <nick...@gmail.com>
To: "ConnectBot Users" <connectb...@googlegroups.com>
Sent: Monday, November 28, 2011 5:09 PM
Subject: Re: ssh profiles and scripts
Ah! Say you have:
home
gateway
dest1
dest2
dest3
'home' config: connect home:22, forward 2222:gateway:22
login to home for forwarding local:2222 to gateway:22 (through home IP)
'gateway' config: connect localhost:2222, multiple forward
2223:dest1:22
2224:dest2:22
2225:dest3:22
login to gateway (forwarded by 'home') for forwarding by 'gateway' to
dest1, dest2, etc.
'dest1' config: connect localhost:2223
login to dest1 (forwarded by 'gateway' which is a local connect forwarded by home)
And you are at dest1
ditto for dest2, dest3.
I haven't tried this but you get the idea.
A confusing setup requires a confusing configuration:(
Good luck.
To: "ConnectBot Users" <connectbot-users@googlegroups.com>
To post to this group, send email to connectbot-users@googlegroups.com.
To unsubscribe from this group, send email to connectbot-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/connectbot-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "ConnectBot Users" group.
To post to this group, send email to connectbot-users@googlegroups.com.
To unsubscribe from this group, send email to connectbot-users+unsubscribe@googlegroups.com.
----- Original Message -----
From: "Fred Cox" <sailo...@gmail.com>
To: <connectb...@googlegroups.com>
Sent: Monday, November 28, 2011 11:43 PM
Subject: Re: ssh profiles and scripts
>> To: "ConnectBot Users" <connectbot-users@**googlegroups.com<connectb...@googlegroups.com>
>>> To post to this group, send email to connectbot-users@googlegroups.**com<connectb...@googlegroups.com>
>>> .
>>> To unsubscribe from this group, send email to
>>> connectbot-users+unsubscribe@**googlegroups.com<connectbot-users%2Bunsu...@googlegroups.com>
>>> .
>>> For more options, visit this group at http://groups.google.com/**
>>> group/connectbot-users?hl=en<http://groups.google.com/group/connectbot-users?hl=en>
>>> .
>>>
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "ConnectBot Users" group.
>> To post to this group, send email to connectbot-users@googlegroups.**com<connectb...@googlegroups.com>
>> .
>> To unsubscribe from this group, send email to
>> connectbot-users+unsubscribe@**googlegroups.com<connectbot-users%2Bunsu...@googlegroups.com>
>> .
>> For more options, visit this group at http://groups.google.com/**
>> group/connectbot-users?hl=en<http://groups.google.com/group/connectbot-users?hl=en>
>> .
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups "ConnectBot Users" group.
> To post to this group, send email to connectb...@googlegroups.com.
> To unsubscribe from this group, send email to connectbot-use...@googlegroups.com.