06-21-2012
rssh vs openssh
Just wondering why you are fighting with it. Openssh has had this ability for quite some time now. It's just a matter of adding an user/group, and modifying your /etc/ssh/sshd_config file to restrict that user or group.
example:
(/etc/ssh/sshd_config) addition:
Subsystem sftp internal-sftp
Match Group rssh
ChrootDirectory /home/shared/web
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
Caveats:
* create a goup "rssh" and add your "specific clients" to the group membership.
* the directory /home/shared/web exists (and entire tree down to /home/shared/web is root owned, with chmod 744
* sshd is HUPPed or restarted
10 More Discussions You Might Find Interesting
1. Programming
Hi,
When i run the below code in AIX it runs and solaris not ... why ???
#include <stdio.h>
#include <string.h>
#define MAX 1
int main ()
{
char str ="1,2,3,4,5";
char * pch,b;
int a;
printf ("Enter the int to be searched ",str);
scanf("%d",&a);
sprintf(b,"%d",a);
... (2 Replies)
Discussion started by: vijaysabari
2 Replies
2. AIX
I'm working on an AIX box, and I generall prefer emacs command line editing in ksh. Most control-commands are working, except not control-P (Recall previous command).
ksh
set - o emacs
^p
Does not result in the expected outcome.
does anyone know why this might be? (0 Replies)
Discussion started by: akbar
0 Replies
3. AIX
put prtconf command,after show this error message:
bash-3.00# prtconf
/usr/sbin/prtconf: msize=msize + 12544^J12544: syntax error
pleae help me...........waiting for replay
by
mohan.s
Aix sysadmin
(deleted email, rule violation) (2 Replies)
Discussion started by: smohan62
2 Replies
4. Shell Programming and Scripting
Hi Guys,
I tried to schedule a script for every 5 mins. i tried */5 but it is not working.
Is writing every 5 mins is the only way to do it?
like below
05,10,15,20,25,30,35,40,45,50,55 05-08
Thanks And Regards,
Magesh (11 Replies)
Discussion started by: mac4rfree
11 Replies
5. AIX
Hello,
I'm running AIX 6.1 box.
I tried to use suid on binary file but it doesn't work.
(I set suid on /usr/bin/sleep and tried to run it as user1(sleep owner is bin) - and program still runs as user1. It shoud run as bin isn't it ? - This test run as expected on Linux box)
Filesystem is... (3 Replies)
Discussion started by: vilius
3 Replies
6. UNIX for Advanced & Expert Users
Hi Guys,
I have never seen this happen before, but created a directory as a user when installing some software, software install fails so I try and remove the directory as root and get an error. There is no processes using the folder see output:
ls -l
total 446336
-rwxr----- 1 u0008862... (2 Replies)
Discussion started by: chris5126
2 Replies
7. Red Hat
Hi, I need to log the activity of my SFTP (RHEL 5.4).
I have this in /etc/sshd/sshd_config:
Subsystem sftp /usr/libexec/openssh/sftp-server -f LOCAL5 -l VERBOSE
And this in /etc/syslog.conf:
LOCAL5.* /var/log/sftp.log
When I log in... (1 Reply)
Discussion started by: Tr0cken
1 Replies
8. UNIX for Dummies Questions & Answers
I Was able to ssh into the AIX box. now i cannot When I run the command to start it it comes back that is was started, but still does not work. Here is a shot i what i see
# server:/> lslpp -l | grep ssh
openssh.base.client 4.3.0.5201 COMMITTED Open Secure Shell Commands
... (2 Replies)
Discussion started by: fierfek
2 Replies
9. Shell Programming and Scripting
MENU_INTRO(){
date="`date`"
HOSTNAME="`hostname`"
if ; then cols=$2
else cols=2
fi
clear
now=`date +%A,%B-%d-%Y@%H:%M:%S`
echo " -: INFORMIX DBA MENU :- "
echo... (1 Reply)
Discussion started by: fedora132010
1 Replies
10. UNIX for Beginners Questions & Answers
I am running an old IBM P-Series server running AIX 4.3 (I know a dinosaur). The OS has not been updated.
We had a hard drive failure last weekend, and I was able to get most of the system back up, however, I have 3 line printers and 3 label printers that I can not get working. I have tried... (2 Replies)
Discussion started by: Patrick.Crocker
2 Replies
LEARN ABOUT OPENDARWIN
sftp-server
sftp-server(1M) System Administration Commands sftp-server(1M)
NAME
sftp-server - SFTP server subsystem
SYNOPSIS
/usr/lib/ssh/sftp-server
DESCRIPTION
sftp-server implements the server side of the SSH File Transfer Protocol as defined in the IETF draft-ietf-secsh-filexfer.
sftp-server is a subsystem for sshd(1M) and must not be run directly. There are no options or config settings.
To enable the sftp-server subsystem for sshd add the following to /etc/ssh/sshd_config:
Subsystem sftp /usr/lib/ssh/sftp-server
See sshd_config(4) for a description of the format and contents of that file.
There is no relationship between the protocol used by sftp-server and the FTP protocol (RFC 959) provided by in.ftpd.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
FILES
/usr/lib/sftp-server
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsshdu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
sftp(1), ssh(1), ssh-add(1), ssh-keygen(1), sshd(1M), sshd_config(4), attributes(5)
To view license terms, attribution, and copyright for OpenSSH, the default path is /var/sadm/pkg/SUNWsshdr/install/copyright. If the
Solaris operating environment has been installed anywhere other than the default, modify the given path to access the file at the installed
location.
AUTHOR
Markus Friedl
SunOS 5.10 30 Jul 2003 sftp-server(1M)