Sponsored Content
Operating Systems BSD openBSD 4.4 server stuff questions Post 302326732 by slydog on Thursday 18th of June 2009 03:18:10 PM
Old 06-18-2009
try this command:

sudo cat /var/log/authlog | grep Invalid

if you've had your server open for any length of time, a large number of attempted logins will scroll by. Here's how to protect against these attacks ever succeeding:

groupadd ssh
vi /etc/group (and add yourself to the ssh group)

vi /etc/ssh/sshd_config
AllowGroups: ssh
PasswordAuthentication no

now add your public key your ~/.ssh/authorized_keys file

restart the ssh server:

sudo su -
(hit return to accept the default terminal selection)
pkill sshd && /usr/sbin/sshd
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

OpenBSD Questions

Hello Today I installed OpenBSD, and it went great (I hope) But I'm a little confused.. I've run ŽLinux slackware before, and when I recompiled the kernel there, I did it in /usr/src/linux-xxx But in OpenBSD the /usr/src dir is empty! And how do I get X-windows to work? I tried to... (2 Replies)
Discussion started by: Hamcha
2 Replies

2. Solaris

Sun server hardware questions

I have no experience with sun servers but for fun and experience I would like to buy a low-end server and play with things. I have a few questions that maybe some of you who use these things will be able to answer: - I believe they are also called PCI slots in the sun server, but are they the... (2 Replies)
Discussion started by: Synbios
2 Replies

3. UNIX for Dummies Questions & Answers

Install neon-0.26.3. on a OpenBSD server

Hello, I'm a very basic beginning user of OpenBSD. I'd like to install neon-0.26.3. I placed it on our server but I don't know how to install it. The directory has the following contain: # ls .package AUTHORS ChangeLog.CVS NEWS TODO ... (1 Reply)
Discussion started by: syddy
1 Replies

4. UNIX for Dummies Questions & Answers

ftp server on old home computer - a few questions

Hi! Very new to unix stuff, and this is my first post to the forum. I'm pretty sure I know enough to know I know nothing, so please be patient with me and don't laugh too hard. Ok, I've got an old computer and a laptop - the old computer was bought in the mid 90's it's still running windows... (1 Reply)
Discussion started by: boredbody
1 Replies

5. UNIX for Dummies Questions & Answers

3 questions about NTP server

Folks; I'm setting up a new NTP server to sync time for our network. I have one Linux server that needs to point to that NTP server My 3 questions are: 1. I added the IP address for the NTP server to the "/etc/hosts" file on the Linux server. Is that all i need to do to make the Linux server... (5 Replies)
Discussion started by: Katkota
5 Replies

6. Solaris

Questions & helps regarding Netra 1280 server

Hello Everybody I want to that can we configure hardware domain on netra 1280 server as I could not able to find any document regarding this server. If yes could anyone send me link regarding this. I could not able find any proper document related to LOM. Could any provide me the link... (1 Reply)
Discussion started by: amity
1 Replies

7. Solaris

Building new ldom server--many questions

Hi All, I am just starting to build T5240 servers with ldoms in the hope of consolidating some of my older hardware (280Rs, 220Rs, etc). These old servers are currently set up using disksuite mirroring to backup all root and data drives. I am new to Ldoms, zpools, zfs, raidctl, et al. ... (2 Replies)
Discussion started by: jimeeye
2 Replies

8. Linux

Questions about the NTP time server sync

Hi folks, I have developed a Linux server for my customer. After migrating the server to my customer site, I was trying to sync its time to the NTP time servers at my customer site. Below is the ntp.conf: % vi /etc/ntp.conf # Permit time synchronization with our time source, but do not # permit... (2 Replies)
Discussion started by: kimurayuki
2 Replies

9. Red Hat

Questions about running local YUM server

Im building a local yum server to update a handful of RHEL6 and RHEL7 servers, I'll be sharing out these updates via a local http webserver but I have a few questions. 1) it seem I am only able to download RHEL6 patches from a RHEL6 box and 7 patches from a 7 box which would mean I would have to... (1 Reply)
Discussion started by: dendenyc
1 Replies

10. Red Hat

The web server questions

Hi is it logically is better Mysql Have to be installed on the apache machine ? Or a separate machine to consider e for that separate if the machine is spearate has any effect to performance ? thank you for guidance :) (2 Replies)
Discussion started by: mnnn
2 Replies
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)
All times are GMT -4. The time now is 02:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy