Stuck in secure shell.

Stuck in secure shell.

Post by Andy Smi » Mon, 24 Sep 2001 06:37:35



Hi all,
I'm currently in a situation where I need to edit sever html and .jsp
files on a remote sever and the only access I have is secure shell.
I've been using vi to do this but I'm at my wits end. I'm a bit new to
secure shell, but I don't seem to be able to start X windows over the
connection (I assume the product can't do that).

Does anyone know of any decent text editors that can use secure shell
as a connection method? I'd settle for gedit this point if I could run
it locally.

 
 
 

Stuck in secure shell.

Post by Paul Evan » Mon, 24 Sep 2001 07:48:53


On 22 Sep 2001 14:37:35 -0700


> Hi all,
> I'm currently in a situation where I need to edit sever html and .jsp
> files on a remote sever and the only access I have is secure shell.
> I've been using vi to do this but I'm at my wits end. I'm a bit new to
> secure shell, but I don't seem to be able to start X windows over the
> connection (I assume the product can't do that).

ssh certainly can do X forwarding, but it takes some setting up on both
ends of the connection to allow this. I forget offhand, but I think the
SSH-howto document says so...

Quote:> Does anyone know of any decent text editors that can use secure shell
> as a connection method? I'd settle for gedit this point if I could run
> it locally.

vi, emacs, pico, ed, ned, ...

--
Paul Evans

(1st Year Maths & CompSci at Pembroke College, Cambridge, England)



ICQ# 4135350

 
 
 

Stuck in secure shell.

Post by Dave Uhrin » Mon, 24 Sep 2001 00:16:30



> Hi all,
> I'm currently in a situation where I need to edit sever html and .jsp
> files on a remote sever and the only access I have is secure shell.
> I've been using vi to do this but I'm at my wits end. I'm a bit new to
> secure shell, but I don't seem to be able to start X windows over the
> connection (I assume the product can't do that).

> Does anyone know of any decent text editors that can use secure shell
> as a connection method? I'd settle for gedit this point if I could run
> it locally.

You do not need to forward X in order to use vi.
 
 
 

Stuck in secure shell.

Post by Helmut Haefn » Mon, 24 Sep 2001 16:40:48



Quote:>Hi all,
>I'm currently in a situation where I need to edit sever html and .jsp
>files on a remote sever and the only access I have is secure shell.
>I've been using vi to do this but I'm at my wits end. I'm a bit new to
>secure shell, but I don't seem to be able to start X windows over the
>connection (I assume the product can't do that).

I'm not sure but I think you want start the Xserver on the remote
machine which doesn't make sense. What you need is to start some
X-applications on the remote machine working with the Xserver on your
local machine as DISPLAY.

So the first you should do: start your Xserver on the local machine.
In a terminal window you give the command.


which works well for me and does X forwarding. Now you should be able
to start any X-application on the remote machine working with your
X-server as display on the local machine.  

Look at

 man ssh

for more information about ssh, and you should verify correctly the
keys of the remote machines you want to connect to.

Greetings Helmut

 
 
 

Stuck in secure shell.

Post by Linux_3 » Mon, 24 Sep 2001 20:51:20


Your already using the best editor to date....vi

Sistem



> > Hi all,
> > I'm currently in a situation where I need to edit sever html and .jsp
> > files on a remote sever and the only access I have is secure shell.
> > I've been using vi to do this but I'm at my wits end. I'm a bit new to
> > secure shell, but I don't seem to be able to start X windows over the
> > connection (I assume the product can't do that).

> > Does anyone know of any decent text editors that can use secure shell
> > as a connection method? I'd settle for gedit this point if I could run
> > it locally.

> You do not need to forward X in order to use vi.

 
 
 

Stuck in secure shell.

Post by George Bel » Mon, 24 Sep 2001 22:32:59


Be calm and proceed rationally.

> Your already using the best editor to date....vi

> Sistem



>>> Hi all,
>>> I'm currently in a situation where I need to edit sever html and .jsp
>>> files on a remote sever and the only access I have is secure shell.
>>> I've been using vi to do this but I'm at my wits end. I'm a bit new to
>>> secure shell, but I don't seem to be able to start X windows over the
>>> connection (I assume the product can't do that).

>>> Does anyone know of any decent text editors that can use secure shell
>>> as a connection method? I'd settle for gedit this point if I could run
>>> it locally.

>> You do not need to forward X in order to use vi.

 
 
 

Stuck in secure shell.

Post by David Efflan » Tue, 25 Sep 2001 03:15:32



Quote:> Hi all,
> I'm currently in a situation where I need to edit sever html and .jsp
> files on a remote sever and the only access I have is secure shell.
> I've been using vi to do this but I'm at my wits end. I'm a bit new to
> secure shell, but I don't seem to be able to start X windows over the
> connection (I assume the product can't do that).

> Does anyone know of any decent text editors that can use secure shell
> as a connection method? I'd settle for gedit this point if I could run
> it locally.

You can run X programs remotely and display them on your local Xserver,
but you cannot run an Xserver remotely (except something like VNC).  
But it is very likely that there is no X on the web server at all.

A very easy editor if they have the pine package installed is 'pico'.

Otherwise is there some reason you cannot work on the files locally and
then scp them to the site?

--
David Efflandt - All spam is ignored - http://www.de-srv.com/
http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/

 
 
 

Stuck in secure shell.

Post by B. Joshua Rose » Tue, 25 Sep 2001 03:48:27


You need to do two things,

1) On the remote server make sure that X forwarding is enabled. In
/etc/ssh/ssh_config

        ForwardX11 yes

2) The you can connect using the -X switch. I alwasys use both -X and -C
(compression) when doing a remote log in.

ssh -X -C servername

Now you can use a real editor like Xemacs instead of the vi


Quote:> Hi all,
> I'm currently in a situation where I need to edit sever html and .jsp
> files on a remote sever and the only access I have is secure shell. I've
> been using vi to do this but I'm at my wits end. I'm a bit new to secure
> shell, but I don't seem to be able to start X windows over the
> connection (I assume the product can't do that).

> Does anyone know of any decent text editors that can use secure shell as
> a connection method? I'd settle for gedit this point if I could run it
> locally.

 
 
 

1. shell built ins

hi everyone,

i still try to get which done so that it knows about the shell built-ins
like exit etc...
i worked on it but still it won't run. i am pretty sure it is just a small
mistake. please help me out here.

thanks a lot
joyce

opath=$PATH
PATH=
($1 2> /dev/null ) && (echo 'built in shell' :exit 0)
echo x
PATH=/bin:/usr bin
case $# in
0)      echo 'Usage: which command' 1>&2; exit 2
esac
                for i in `echo $opath | sed  's/^:/.:/
                                                             s/::/:.:/g
                                                             s/:$/:./
                                                             s/:/ /g'`
do
                      if test -x $i/$1             # this is /bin/test
                          then                         # or /usr/bin/test
only
               echo $i/$1
               exit 0              # found it
      fi
done
exit 1                              #not found

2. Debuging PPP

3. Shells and built-ins

4. samba

5. Secure Secure Secure

6. can't read english during oracle8i installation

7. Stuck in a loop, stuck in a loop, ...

8. Mandrake 8.2 and Windows XP

9. Shell History Broken - Stuck in VI Mode?

10. ksh93 - Ctrl-c of fg'd output producing job causes shell to be stuck

11. korn shell script on UNIX - I'm stuck...

12. Korn shell scripting... I'm stuck!

13. korn shell script on UNIX - I'm stuck.