Networking Forums

Networking Forums > Computer Networking > Linux Networking > ssh issue

Reply
 
 
rxl124@hehe.com
Guest
Posts: n/a

 
      09-23-2004, 03:17 AM
hi,

after the upgrade of our box(remote location and no other user
available to fix the problem), our default shell BASH has corrupted
and I cannot logon using ssh.

I remember back in the days, my friends showed me the trick of using
ssh command option to choose different login shell(tcsh,ksh,sh,
whatever is available)...

Does anyone know how?

ssh -version
OpenSSH_3.5p1, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
Bad escape character 'rsion'.

Thanks in advance....

ssh -?
ssh: illegal option -- ?
Usage: ssh [options] host [command]
Options:
-l user Log in using this user name.
-n Redirect input from /dev/null.
-F config Config file (default: ~/.ssh/config).
-A Enable authentication agent forwarding.
-a Disable authentication agent forwarding (default).
-X Enable X11 connection forwarding.
-x Disable X11 connection forwarding (default).
-i file Identity for public key authentication (default:
~/.ssh/identity)
-t Tty; allocate a tty even if command is given.
-T Do not allocate a tty.
-v Verbose; display verbose debugging messages.
Multiple -v increases verbosity.
-V Display version number only.
-q Quiet; don't display any warning messages.
-f Fork into background after authentication.
-e char Set escape character; ``none'' = disable (default: ~).
-c cipher Select encryption algorithm
-m macs Specify MAC algorithms for protocol version 2.
-p port Connect to this port. Server must be on the same port.
-L listen-port:hostort Forward local port to remote address
-R listen-port:hostort Forward remote port to local address
These cause ssh to listen for connections on a port, and
forward them to the other side by connecting to
hostort.
-D port Enable dynamic application-level port forwarding.
-C Enable compression.
-N Do not execute a shell or command.
-g Allow remote hosts to connect to forwarded ports.
-1 Force protocol version 1.
-2 Force protocol version 2.
-4 Use IPv4 only.
-6 Use IPv6 only.
-o 'option' Process the option as if it was read from a
configuration file.
-s Invoke command (mandatory) as SSH2 subsystem.
-b addr Local IP address.
 
Reply With Quote
 
 
 
 
P.T. Breuer
Guest
Posts: n/a

 
      09-23-2004, 04:11 AM
(E-Mail Removed) wrote:
> after the upgrade of our box(remote location and no other user
> available to fix the problem), our default shell BASH has corrupted
> and I cannot logon using ssh.


> I remember back in the days, my friends showed me the trick of using
> ssh command option to choose different login shell(tcsh,ksh,sh,
> whatever is available)...


> Does anyone know how?


ssh foo@remote_mach /bin/tcsh

Peter
 
Reply With Quote
 
Paul Colquhoun
Guest
Posts: n/a

 
      09-23-2004, 06:20 AM
On Thu, 23 Sep 2004 06:11:33 +0200, P.T. Breuer <(E-Mail Removed)> wrote:
| (E-Mail Removed) wrote:
|> after the upgrade of our box(remote location and no other user
|> available to fix the problem), our default shell BASH has corrupted
|> and I cannot logon using ssh.
|
|> I remember back in the days, my friends showed me the trick of using
|> ssh command option to choose different login shell(tcsh,ksh,sh,
|> whatever is available)...
|
|> Does anyone know how?
|
| ssh foo@remote_mach /bin/tcsh


If the corruption is more extensive, and some libraries are missing,
then /bin/sash may be a better choice, assuming it is installed.

This is a Stand Alone (or System Admin) shell that has cut-down versions
of some usefull commands built in, so they will work without libraries.


--
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/~paulcol
Asking for technical help in newsgroups? Read this first:
http://catb.org/~esr/faqs/smart-questions.html#intro
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No logon server available - Windows 2003 Trust Issue? NS Issue? newsgroups.jd@gmail.com Windows Networking 15 08-21-2006 07:38 PM
Senao 2611CB3+Deluxe setup issue, network configuration issue, orboth? RWM Wireless Internet 0 01-27-2006 06:00 PM
3 NIC IP routing issue & local dhp client issue Grimmo' Windows Networking 6 05-04-2005 10:19 AM
MN-500 issue Tim Broadband Hardware 0 02-15-2005 01:05 AM
1. Redhat linux 7.2 issue 2. Redhat enterprise linux issue Moo Linux Networking 0 08-26-2004 10:02 AM



1 2 3 4 5 6 7 8 9 10 11