CPUG: The Check Point User Group

Resources for the Check Point Community, by the Check Point Community.


First, I hope you're all well and staying safe.
Second, I want to give a "heads up" that you should see more activity here shortly, and maybe a few cosmetic changes.
I'll post more details to the "Announcements" forum soon, so be on the lookout. -E

 

Results 1 to 11 of 11

Thread: how to use winscp for CheckPoint R77.30

  1. #1
    Join Date
    2013-10-08
    Posts
    10
    Rep Power
    0

    Default how to use winscp for CheckPoint R77.30

    Dear all.

    After upgrade R77.20 to R77.30, i found that i can not use winscp tool to connect the gateways with version R77.30
    I also change shell bash again by chsh -s /bin/bash without help.


    Any one can give any advice?

    Thanks and Best Regards,
    Flexible
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Capture.PNG 
Views:	976 
Size:	7.0 KB 
ID:	1018  

  2. #2
    Join Date
    2013-09-25
    Location
    Bucharest
    Posts
    649
    Rep Power
    10

    Default Re: how to use winscp for CheckPoint R77.30

    Can you share cat /etc/passwd | grep username_you_use_for_winscp

  3. #3
    Join Date
    2013-10-08
    Posts
    10
    Rep Power
    0

    Default Re: how to use winscp for CheckPoint R77.30

    Quote Originally Posted by laf_c View Post
    Can you share cat /etc/passwd | grep username_you_use_for_winscp
    Here you are

    admin:x:0:0::/home/admin:/etc/cli.sh

  4. #4
    Join Date
    2007-02-07
    Posts
    162
    Rep Power
    17

    Default Re: how to use winscp for CheckPoint R77.30

    Don't change your shell! Create a scpuser.

    Code:
    add user scpuser uid 2600 homedir /home/scpuser
    set user scpuser shell /usr/bin/scponly
    set user scpuser password
    save config
    Want more Check Point info?
    Read our tech blog!


  5. #5
    Join Date
    2013-09-25
    Location
    Bucharest
    Posts
    649
    Rep Power
    10

    Default Re: how to use winscp for CheckPoint R77.30

    Quote Originally Posted by Flexible View Post
    Here you are

    admin:x:0:0::/home/admin:/etc/cli.sh
    I was not aware of a dedicated SCP user. Still if you want to use admin for SCP you should have /bin/bash on your admin passwd output.

    On R77.20 Gaia I have succesfully used: set user admin shell /bin/bash

  6. #6
    Join Date
    2013-10-08
    Posts
    10
    Rep Power
    0

    Default Re: how to use winscp for CheckPoint R77.30

    Quote Originally Posted by danjun View Post
    Don't change your shell! Create a scpuser.

    Code:
    add user scpuser uid 2600 homedir /home/scpuser
    set user scpuser shell /usr/bin/scponly
    set user scpuser password
    save config
    Want more Check Point info?
    Read our tech blog!

    IT is working now. Thank you very much

  7. #7
    Join Date
    2012-06-13
    Posts
    368
    Rep Power
    11

    Default Re: how to use winscp for CheckPoint R77.30

    or simple one

    run below command from expert mode

    chsh -s /bin/bash admin

  8. #8
    Join Date
    2011-08-02
    Location
    http://spikefishsolutions.com
    Posts
    1,668
    Rep Power
    13

    Default Re: how to use winscp for CheckPoint R77.30

    Quote Originally Posted by blason View Post
    or simple one

    run below command from expert mode

    chsh -s /bin/bash admin
    That is only valid for splat. For Gaia you need to do it like this from clish (like laf_c said)

    set user admin shell /bin/bash
    save config

    Technically you can edit using chsh, but if someone adds or does anything that triggers a passwd rebuild you'll lose the change.
    Last edited by jflemingeds; 2015-11-08 at 16:42. Reason: laf_c already answered.

  9. #9
    Join Date
    2012-06-13
    Posts
    368
    Rep Power
    11

    Default Re: how to use winscp for CheckPoint R77.30

    This possible in GAIA as well in expert mode. Agree you are in expert mode that means you are in splat mode.

  10. #10
    Join Date
    2011-08-02
    Location
    http://spikefishsolutions.com
    Posts
    1,668
    Rep Power
    13

    Default Re: how to use winscp for CheckPoint R77.30

    Quote Originally Posted by blason View Post
    This possible in GAIA as well in expert mode. Agree you are in expert mode that means you are in splat mode.
    There is no such thing as splat mode, its just a root shell. What i'm saying is you should not be doing edits to /etc/passwd (which is what chsh is doing) because anything you do in clish that modifies user info will rebuild /etc/passwd and you will lose your change. Here is an example. I go into expert, change the shell with chsh, then only change the password for admin. Notice how i just lost the chsh change?

    That is why you should only be using clish or webui for changing user account info.


    MGMTR7730> expert
    Enter expert password:

    Warning! All configuration should be done through clish
    You are in expert mode now.

    [Expert@MGMTR7730:0]# chsh -s /bin/bash admin
    Changing shell for admin.
    Shell changed.
    [Expert@MGMTR7730:0]# egrep admin /etc/passwd
    admin:x:0:0::/home/admin:/bin/bash
    [Expert@MGMTR7730:0]# exit
    exit
    MGMTR7730> set user admin password
    New password:
    Verify new password:
    MGMTR7730> save config
    MGMTR7730> expert
    Enter expert password:

    Warning! All configuration should be done through clish
    You are in expert mode now.

    [Expert@MGMTR7730:0]# egrep admin /etc/passwd
    admin:x:0:0::/home/admin:/etc/cli.sh

  11. #11
    Join Date
    2008-04-25
    Posts
    35
    Rep Power
    0

    Default Re: how to use winscp for CheckPoint R77.30

    It is really simple. Just create a user in the GAIA GUI with bash as the default Shell.

    No need to do all the other cli commands.

Similar Threads

  1. cannot access SecurePlatform through winSCP
    By cosufw1 in forum Miscellaneous
    Replies: 17
    Last Post: 2008-11-14, 10:32
  2. How to backup checkpoint through CLI in Nokia IP330 + Checkpoint NG FP1
    By stuart in forum Check Point Backup Procedures
    Replies: 0
    Last Post: 2007-04-05, 05:47
  3. Checkpoint to non-Checkpoint Config needed
    By lowfell in forum IPsec VPN Blade (Virtual Private Networks)
    Replies: 2
    Last Post: 2007-03-27, 12:25
  4. winscp and secplat
    By raulico in forum Check Point SecurePlatform (SPLAT)
    Replies: 3
    Last Post: 2006-08-07, 09:50

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •