pls, urgent...edit a file in solaris using vi

HI,

I have to enable ssh on a solaris, so I have to edit a script with which I will start the daemon ssh.

This /etc/init.d/sshd script, I am trying to edit it :

vi sshd

then I press i for inserting - it does not work

then i press :q! or :w for exiting and saving - it does not work

Can anyone tell me pls what's happening?

I am very ney, its my first time with solaris and please be specific and precisly.

Thank you all very much

Serban

[688 byte] By [popa] at [2007-11-25 22:42:42]
# 1
hallo you have a caps lock enabled?
LucaViesti at 2007-7-5 14:22:11 > top of Java-index,General,Network Configurations...
# 2
No, I do not have the caps lock enable. It does not owrk with it enabled or disabled. Thanks
popa at 2007-7-5 14:22:11 > top of Java-index,General,Network Configurations...
# 3
wrong terminal settings?
LucaViesti at 2007-7-5 14:22:11 > top of Java-index,General,Network Configurations...
# 4

Could you be more specific as to exactly what you mean by "it does not work"?

SPARC or x86? Keyboard?

if you issue the command:

<b># which vi</b>

what do you get?

Are you root or a user?

After the file opens, you hit "i", can you start typing anything?

<b>q!</b> doesn't save and exit. It cancels any changes you did during the session and exits. <b>w</b> saves but doesn't exit. <b>x</b> saves and exits.

codename47 at 2007-7-5 14:22:11 > top of Java-index,General,Network Configurations...