Sponsored Content
Top Forums UNIX for Advanced & Expert Users Why am I root? (accessing sftp server with pubkeys) Post 302915250 by RavinderSingh13 on Tuesday 2nd of September 2014 01:07:01 AM
Old 09-02-2014
Hello hicnar,

Welcome to the forum. As per your input provided I can see property PermitRootLogin no which is good enough to stop root to do ssh.
but also there are 2 points which I think you can try.
  1. If you have made changes to your file /etc/ssh/sshd_config recently then please make sure that you need to recycle the service by /etc/init.d/sshd restart command after making changes to file.
  2. If you have done the 1st suggestion(recycling of service after change) I can see there is a property AllowGroups sshusers in the file so I assume root will be also the part of this group too. So we can try to troubleshoot here if this is the cause.

Please do let us know if you have any queries.

NOTE: These are only suggestions please don't perform this in you live environment, you can try the same in your system and check.


Thanks,
R. Singh

Last edited by rbatte1; 09-08-2014 at 11:07 AM.. Reason: Set up LIST=i tags
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Remotely accessing a server

Ok, so I'm a total beginner when it come to unix shells, but my friends and I are starting to get into it. It turns out that I have an extra computer lying around and I want to set it up as a server se we can run shell commands on it. Does anyone know of any guides on how to set up the... (3 Replies)
Discussion started by: rogre
3 Replies

2. UNIX for Dummies Questions & Answers

Accessing Unix from Server

I am trying to access my school's unix server. On one of the tutorials they passed out there were instructions on how to dial a modem to connect or something but I think i should be able to connect to it through my school's internet connection. All of my school's computers has access to a unix... (1 Reply)
Discussion started by: UMiami10
1 Replies

3. UNIX for Advanced & Expert Users

accessing ms access from unix server...

Hello, I have a databse stored in my Unix server. I can't change the database because is used by a third party software. How Can I make some queries to this database (I want to extend the information for all the users using Apache + php on the unix server.) I looked at unixODBC but I... (0 Replies)
Discussion started by: ncatdesigner
0 Replies

4. Shell Programming and Scripting

Accessing windows server

Hello guys, i have a scenario that i need to run some commands on a unix machine and them connect on a windows server machine stop some services and them back to the Unix machine do another commands.. There is a way to do that with shell script? tks (1 Reply)
Discussion started by: paddock
1 Replies

5. UNIX for Advanced & Expert Users

sftp only works for root

Hi all, I have an aix 5.3 running open ssh 1.75 i think only root can sftp into the server. I appears to authenticate OK via the verbose output. Here it is: ################################################ ################################################ ... (3 Replies)
Discussion started by: dfezz1
3 Replies

6. UNIX for Dummies Questions & Answers

Only root can login using SFTP

Hello, It seems on a machine that I am responsible for supervising only root can use ssh/sftp services. I have looked at sshd_config and do not see anything that can fix this. PermitRootLoggin is enabled but that option does not preclude other users from using ssh/sftp services. When I try and... (5 Replies)
Discussion started by: mojoman
5 Replies

7. Solaris

Accessing Solaris Server

Dear all, We have a Solaris Server at other location. Can we access the Server from remote ....Any software is needed for this ....pl help. Rgds Rj (7 Replies)
Discussion started by: jegaraman
7 Replies

8. UNIX for Advanced & Expert Users

Accessing secured server using shell script

Hi, I was trying to connect secure server using SFTP, but end up in error. Im looking for a shell script which will connect my secured FTP server For EG: hostname = example.com username = fed password = pass port = 993 Destination = web Push some tar file into web folder which is in... (3 Replies)
Discussion started by: Paulwintech
3 Replies

9. UNIX for Dummies Questions & Answers

Accessing mail server from UNIX

Hi all, I need to access the mails sent to me in a mail server(IMAP mail server), and download the attachment sent in the mail to the unix environment. Please help me to acheive the same. I am not able to install python , PHP modules in my unix box due to installation restriction in my work... (3 Replies)
Discussion started by: arun1377
3 Replies

10. Shell Programming and Scripting

Needed SFTP script from windows to UNIX server and from UNIX to windows server(reverse SFTP)

hi guys, i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not and again i have to reverse sftp the files from unix to windows server..... regards, Vasa Saikumar. (13 Replies)
Discussion started by: hemanthsaikumar
13 Replies
SSH-KEYSIGN(8)						    BSD System Manager's Manual 					    SSH-KEYSIGN(8)

NAME
ssh-keysign -- ssh helper program for host-based authentication SYNOPSIS
ssh-keysign DESCRIPTION
ssh-keysign is used by ssh(1) to access the local host keys and generate the digital signature required during host-based authentication with SSH protocol version 2. ssh-keysign is disabled by default and can only be enabled in the global client configuration file /etc/ssh/ssh_config by setting EnableSSHKeysign to ``yes''. ssh-keysign is not intended to be invoked by the user, but from ssh(1). See ssh(1) and sshd(8) for more information about host-based authen- tication. FILES
/etc/ssh/ssh_config Controls whether ssh-keysign is enabled. /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_rsa_key These files contain the private parts of the host keys used to generate the digital signature. They should be owned by root, read- able only by root, and not accessible to others. Since they are readable only by root, ssh-keysign must be set-uid root if host- based authentication is used. SEE ALSO
ssh(1), ssh-keygen(1), ssh_config(5), sshd(8) HISTORY
ssh-keysign first appeared in OpenBSD 3.2. AUTHORS
Markus Friedl <markus@openbsd.org> BSD
May 31, 2007 BSD
All times are GMT -4. The time now is 02:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy