Let's troubleshoot... We also do trainings .. Checkout our training page https://asame2.blogspot.com/p/we-also-deliver-trainings.html

Featured Post

How to generate a CSR on Cisco ASA using CLI? CSR- (Certificate signing request)

First thing we need is an RSA key pair:   crypto key generate rsa label SSL-Key modulus 1024 noconfirm Create a trust-point crypto ca...

Recent Comments

Recent Post

Monday 22 April 2019

How to change Shell in checkpoint? / How to change shell to bash and then back to clish?


Hello there,

Changing shell in checkpoint is sometimes necessary. Let's see why and when

When you first login to your checkpoint it takes you to clish mode where you see something like this:

abc-mycheckpoint01>

Here you get option to go to "Expert" mode.

I was trying to copy a file from the disk via WinSCP. When I logged in via WinSCP it didn't like the shell and complained about it. See below pic:



Before I tell you how can you change the shell, let me first tell you how can you see what shell your gateway currently has:

If your username is admin, then this is the way for you to verify your shell:

Login as admin
in Expert mode:

egrep admin /etc/passwd

 


You can use the below command to view available shells on gateway:
Cat /etc/shells
 
For WinSCP to work, you will need "BASH" mode for shell.


How to change the shell to -bash?

Chsh –s /bin/bash

How to change the shell to clish?
Chsh –s /etc/cli.sh


  I hope this has been helpful to you. Please click on below social media icons to share it.

 

0 comments: