[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



-----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
- --
Niels Muller Larsen, MSc
Programmer, Teacher

Mob: +45 2040 5740
Web: http://x15.dk
Mail: sslug@sslug
Public key: 0xD4DB4A5E
(http://keyserver.veridis.com:11371/search?q=0xD4DB4A5E)

All things being equal, you are bound to lose.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKNnK7biU629TbSl4RAvGyAKCsz6xdy2DjKl0bemTA/B2xEcRh4QCg3bMP
Ntx5lT+nhhVK8jXf6G7CK9U=
=0EMl
-----END PGP SIGNATURE-----


 
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] *