[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] ændre ssh remote shell



Niels Müller Larsen wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Lars Madsen wrote:
hvis jeg laver en

ssh server -l bruger "echo hest"

så køres "echo hest" i den shell som bruger anvender på server

kan man via ssh konfigurationen ændre dette til en bestemt shell, f.eks.
bash?

Baggrund: jeg sidder og roder med at få LTSP 5 til at køre med RHEL 5,
jeg køres al kommunikation mellem klient og server gennem ssh, problemet
er bare at vi af forskellige årsager har en del brugere som anvender
tcsh shellen, og mange af de ssh kald (gennem sockets) som LTSP 5
anvender bruger bash syntaks (til f.eks. at sætte environment variable)

De fleste kald kan fikses ved at ændre

ssh server -l bruger "..."

til

ssh server -l bruger "/bin/bash -c '...'"

men det er jo bøvlet at skulle finde alle de steder hvor der er
problematiske ssh kald, så jeg tænkte at måske kunne SSH gøre dette for
mig?

nogen ideer?




Hvis du er administrator på den fjerne maskine kunne du måske lade de
pågældende have /bin/bash som default shell, se: man 5 passwd

upraktisk, for mange brugere

--

/daleif


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2009-07-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *