CPUG

The Check Point User Group

A Resource For The Check Point Community.  Fast.  Useful.  Independent.

1. Come to CPUG CON 2008 EUROPE in Switzerland on September 8th - 9th!
    Two days full of technical content for Check Point administrators in the beautiful Swiss Alps!
    We've already had our first sign-ups!
2. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting 6/9, 7/14, 8/25, 10/6, 11/3, 12/8.
3. We have new forums in Portuguese and German (see below).
4. Corrent S3500 SecureXL Turbocards For Sale - Last Six Remaining - Get Your Spares!
5. Join Us On LinkedIn - We now have a CPUG group.


Go Back   CPUG: The Check Point User Group > Check Point Firewall-1/VPN-1 And Related Products > Miscellaneous
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2005-10-19
cosufw1 cosufw1 is offline
Junior Member
 
Join Date: 2005-10-19
Posts: 3
cosufw1 has an average reputation (10+)
Default cannot access SecurePlatform through winSCP

Iīm trying to connect to a SecurePlatform R60 smartcenter with winSCP3, to get log files easily, but the SCP client finishes with error:
Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended).

The session log shows this message:
stty: standard input: Invalid argument

Anyway, I can transfer files to the Secureplatform SCP server from another Secureplatform, using command "scp file1 admin@smartcenter:"

The file /etc/scpusers is already created with the admin user.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 2005-10-20
stuartgreen stuartgreen is offline
Member
 
Join Date: 2005-09-15
Posts: 64
stuartgreen has an average reputation (10+)
Default Re: cannot access SecurePlatform through winSCP

not 100% sure but it may be a problem with the restricted shell that is usually given to the admin user on secureplatform.
in that shell you only get basic checkpoint commands, and although i have no idea what the software you are using actually does i would guess it needs access to an unrestricted shell. it might work if you create a new user whose default shell is bash and not cpshell (which i think by default is given to the admin user before entering expert mode)
hope this helps!
Reply With Quote
  #3 (permalink)  
Old 2005-10-20
cosufw1 cosufw1 is offline
Junior Member
 
Join Date: 2005-10-19
Posts: 3
cosufw1 has an average reputation (10+)
Default Re: cannot access SecurePlatform through winSCP

Yes, it is working now.
I have created a new user with bash shell, added him to a few groups and to /etc/scpusers, and worked fine.

Thanks a lot.
Reply With Quote
  #4 (permalink)  
Old 2005-10-25
zencoder zencoder is offline
Junior Member
 
Join Date: 2005-08-26
Location: Mountain Standard Tribe
Posts: 17
zencoder has an average reputation (10+)
Default Re: cannot access SecurePlatform through winSCP

Can you provide some insight on HOW you gave the user BASH instead of CPShell? I am finding SPLAT to be ridiculously cumbersome. I'd rather put VPN-1 on a nice hardened Debian platform, personally.
Reply With Quote
  #5 (permalink)  
Old 2005-10-25
cosufw1 cosufw1 is offline
Junior Member
 
Join Date: 2005-10-19
Posts: 3
cosufw1 has an average reputation (10+)
Default Re: cannot access SecurePlatform through winSCP

Once you have created the user, edit /etc/passwd and change "cpshell" to "bash" at the end of the user line. It should look like this:
user1:x:0:0::/home/user1:/bin/bash

Then edit /etc/group and add the user to the appropriated groups, separated with comma:
root:x:0:root,user1

Donīt forget to create /etc/scpusers with the user name, if you want SCP access.
Reply With Quote
  #6 (permalink)  
Old 2005-10-25
zencoder zencoder is offline
Junior Member
 
Join Date: 2005-08-26
Location: Mountain Standard Tribe
Posts: 17
zencoder has an average reputation (10+)
Default Re: cannot access SecurePlatform through winSCP

Thanks for the quick reply. Let me apologize...I didn't provide nearly enough information. My problem has been *using* that damned CPShell. Any user I add automatically gets that shell. I am not certain what CLI text editor to use to for changing conf files. "vi" isn't available, that I can tell.

I feel like I'm working on a broken *NIX platform with both hands tied behind my back and a blindfold over my eyes.

What editor is available in CPShell? Pico? Emacs? Or is it something proprietary?
Reply With Quote
  #7 (permalink)  
Old 2005-10-25
czech12 czech12 is offline
Member
 
Join Date: 2005-10-25
Location: North Brunswick, NJ
Posts: 38
czech12 has an average reputation (10+)
Default Re: cannot access SecurePlatform through winSCP

It sounds to me like you are never making it into "Expert" mode in SPLAT. When you log into the cpshell, it is really scaled down to just check point commands and a few troubleshooting tools like ping and traceroute. To get to the file structure and the other features of the Red Hat Linux kernel it runs on, type "expert" (without the quotes, of course). This will make you put in the expert password (or make you create one if you've never logged into expert mode) and will give you access to all the normal Linux commands you are used to.

Let me know if this helps.
Reply With Quote
  #8 (permalink)  
Old 2005-10-25
zencoder zencoder is offline
Junior Member
 
Join Date: 2005-08-26
Location: Mountain Standard Tribe
Posts: 17
zencoder has an average reputation (10+)
Default Re: cannot access SecurePlatform through winSCP

cosufw1 and czech12, thank you both very much. That last bit was it, I didn't realize I wasn't GETTING to expert mode for the regular system shell I needed. Your help is greatly appreciated.

I'm still having MAJOR issues (major in my book...perhaps not major in the grand scheme of things) and am still pretty unhappy with SPLAT as an OS, but it certainly does seem to be secure. To the point of making it unusable in a test environment, where frequent changes may need to be made. But oh well, Check Point has made *there* money...guess I'll slough along.

Thanks again.
Reply With Quote
  #9 (permalink)  
Old 2005-10-27
zencoder zencoder is offline
Junior Member
 
Join Date: 2005-08-26
Location: Mountain Standard Tribe
Posts: 17
zencoder has an average reputation (10+)
Default Re: cannot access SecurePlatform through winSCP

Quote:
Originally Posted by zencoder
cosufw1 and czech12, thank you both very much. That last bit was it, I didn't realize I wasn't GETTING to expert mode for the regular system shell I needed. Your help is greatly appreciated.

I'm still having MAJOR issues (major in my book...perhaps not major in the grand scheme of things) and am still pretty unhappy with SPLAT as an OS, but it certainly does seem to be secure. To the point of making it unusable in a test environment, where frequent changes may need to be made. But oh well, Check Point has made *there* money...guess I'll slough along.

Thanks again.
FYI, I never was able to push a file to the SPLAT system. My workaround was to SSH-in (with my user who had a BASH shell by default) and scp the file off of another Linux system on the network. A *real* pain in the ass.
Reply With Quote
  #10 (permalink)  
Old 2005-10-31
czech12 czech12 is offline
Member
 
Join Date: 2005-10-25
Location: North Brunswick, NJ
Posts: 38
czech12 has an average reputation (10+)
Default Re: cannot access SecurePlatform through winSCP

What I normally do is SSH to the SPLAT box, get into Expert mode, then FTP from the SPLAT box to an ftp server. If you do not require the traffic to be encrypted, it is an easy way to get files on and off the SPLAT box...
__________________
====================
Aaron Vivo
CCSE Plus, CCMSE, NSA
====================
Reply With Quote
  #11 (permalink)  
Old 2006-08-09
kapeman kapeman is offline
Junior Member
 
Join Date: 2006-08-09
Posts: 1
kapeman has an average reputation (10+)
Default Re: cannot access SecurePlatform through winSCP

Quote:
Originally Posted by czech12
What I normally do is SSH to the SPLAT box, get into Expert mode, then FTP from the SPLAT box to an ftp server. If you do not require the traffic to be encrypted, it is an easy way to get files on and off the SPLAT box...

I have tried that and get the following error:

"Passive mode address scan failure. Shouldn't happen!"

I am sure I'm missing something, but I don't know what it is.

Thanks

Also: I have performed all the steps listed above and when using WinSCP, the Splat box won't take my password.

Last edited by kapeman : 2006-08-09 at 06:21.
Reply With Quote
  #12 (permalink)  
Old 2 Weeks Ago
rogermilla rogermilla is offline
Junior Member
 
Join Date: 2007-05-29
Posts: 1
rogermilla has an average reputation (10+)
Default Re: cannot access SecurePlatform through winSCP

I am a CheckPoint newbies. Could you please guide me step by step procedure to create a SCP user? Thanks.




Quote:
Originally Posted by cosufw1 View Post
Once you have created the user, edit /etc/passwd and change "cpshell" to "bash" at the end of the user line. It should look like this:
user1:x:0:0::/home/user1:/bin/bash

Then edit /etc/group and add the user to the appropriated groups, separated with comma:
root:x:0:root,user1

Donīt forget to create /etc/scpusers with the user name, if you want SCP access.
Reply With Quote
  #13 (permalink)  
Old 2 Weeks Ago
chillyjim chillyjim is offline
Senior Member
 
Join Date: 2005-08-29
Location: Upstate NY
Posts: 1,501
chillyjim has an average reputation (10+)
Send a message via AIM to chillyjim Send a message via Skype™ to chillyjim
Default Re: cannot access SecurePlatform through winSCP

Quote:
Originally Posted by rogermilla View Post
I am a CheckPoint newbies. Could you please guide me step by step procedure to create a SCP user? Thanks.
Log into your SPLAT box (This has to be done on each box) then

expert <cr>
password: <expert password><cr>
cat > /etc/scpusers <cr>
<username><cr> [for each user]
<Ctrl-D>

That's all
Reply With Quote
  #14 (permalink)  
Old 1 Week Ago
mdiot mdiot is offline
Junior Member
 
Join Date: 2007-07-27
Location: France
Posts: 15
mdiot has an average reputation (10+)
Default Re: cannot access SecurePlatform through winSCP

You can create a new user with the wed ui and then you go to ssh and you can use this command to do not edit anything :
chsh -s /bin/bash username > user directly connect to bash (expert mode)
chsh -s /bin/cphsell username > user connct and use cpshell
__________________
Mike
Reply With Quote
  #15 (permalink)  
Old 1 Week Ago
chillyjim chillyjim is offline
Senior Member
 
Join Date: 2005-08-29
Location: Upstate NY
Posts: 1,501
chillyjim has an average reputation (10+)
Send a message via AIM to chillyjim Send a message via Skype™ to chillyjim
Default Re: cannot access SecurePlatform through winSCP

This will do nothing for SCP. SCP access is controlled only by the /etc/scpusers file. Your commands will only change the shell the user gets.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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


All times are GMT -7. The time now is 16:26.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0