-2
votes
1answer
55 views

Why I am not able to ssh as root?

root@web04:~# ssh -v -i.ssh/id_rsa root@11.11.11.4 OpenSSH_5.9p1 Debian-5ubuntu1.4, OpenSSL 1.0.1 14 Mar 2012 Warning: Identity file .ssh/id_rsa not accessible: No such file or directory. debug1: ...
1
vote
2answers
139 views

Changed SSH default port and disabled root login. Client didn't save the new port can't login/connect to it now

Working on my centos server. Connecting via putty. Changed SSH default port and disabled root login. But the client didn't save the new port and defaulted back to 22 (my new one was 42650 or something ...
2
votes
3answers
138 views

Disabled root login for SSH in Centos 5.9, key login no longer working

I have a Centos 5.9 server which I have previously configured to access via SSH key login and this has been working fine for many months. I recently had to have an issue resolved remotely which ...
2
votes
1answer
68 views

Do you need root access to fully backup a server?

I have an account on a server and I would like to automate backups onto another server, I disabled root logins for security. Do you need root access to fully backup a server?
1
vote
1answer
593 views

Disable root login for dropbear? [closed]

Linux noob here. How can I disable root login for dropbear? What I've done so far adding DROPBEAR_EXTRA_ARGS="-w -g" into /etc/default/dropbear (not working) adding DROPBEAR_EXTRA_ARGS="-w -g" into ...
0
votes
1answer
566 views

Timeout in locking /.Xauthority

I have google searched and everyone who has this problem has an error in locking /home/user/.Xauthority. The issue is that it is trying to lock /.Xauthority. Obviously there is no .Xauthority in /, ...
2
votes
2answers
431 views

Is it really a bad practice to let « PermitRootLogin yes » on a production server? [closed]

One day (4 years ago), I rebooted my server. After the reboot was complete, I tried to login as usual with my regular (non-root) account. At that time, I had PermitRootLogin no. I got the answer ...
12
votes
10answers
5k views

Best way to go about changing a root password on 3000+ Solaris, AIX, and Linux servers?

Long story short: Big old corporation, lots of UNIX/Linux servers. I inherited responsibility for a bunch of scripts that that left a few years ago. One of them was a script that would be run every ...
0
votes
1answer
336 views

Allowing root login on sftp while disallowing it over ssh?

For security I only allow a dummy user to log in via SSH on my CentOS 5.8 server, for this I added: AllowUsers dummyaccount When accessing my server I then login with the dummy and use su - to gain ...
1
vote
3answers
128 views

Security advices - ssh root access login

I'd like to have some advices on my case: I have a server with a public ip address. I have a root user with password. I have turn off (in sshd) PermitRootlogin = No Questions/tips/advices: How can ...
0
votes
4answers
117 views

Linux utility to monitor for stupid / likely ill-advised commands

sudoing adds a little bit of a roadblock to doing potentially stupid and dangerous things in the Linux shell, but it is a meager deterrent to newer Linux users. Still, many users login as root or have ...
1
vote
1answer
558 views

Root SSH login works, but su/sudo to root does not work

Im recently working on a clients box, and SSH into the box with root credentials work but when i try to su or sudo to root user it states incorrect password. I tried changed the root password and know ...
1
vote
2answers
1k views

CentoOS SSH Access

I'm executed this commands with root user i'm on a CentOS 6.3 server: #useradd newuser #passwd newuser #visudo then I added this line at end of file: AllowUsers newuser #service sshd restart ...
0
votes
1answer
115 views

Getting permission denied error

On my Media Temple DV 4.0 server I am getting permission denied errors: -bash: cd: httpdocs: Permission denied If I switch from my login user to sudo (sudo su) or switch to root using su-, I can ...
5
votes
5answers
921 views

Linux - How to manage the password of root?

We have just deployed a couple of Linux server. Each sysadmin will have his own account on the server (i.e.: jsmith), and will connect using SSH with a certificate which will be put into the ...
1
vote
1answer
429 views

Cannot login as root to centos server

I used to login as ssh root@servip with a password authentication into my CentOS 6 server. I am not sure if what I have done has caused this, but while trying to get over my problem of accessing ...
2
votes
2answers
258 views

Resetting root password on Fedora Core 3 - serial cable access only

A little background: We have an old rackmount server running a customised version of Fedora, manufactured by a company called Navaho. The server is a TeamCAT, running some proprietary rubbish called ...
5
votes
3answers
1k views

Why does 'pkill /?' kill my SSH session?

After running the following commands (bash) as root via SSH: pkill --help pkill -h pkill /? The first two commands didn't provide me any information, that's why ran the third (kinda ...
0
votes
3answers
5k views

Root only has read permission for /etc/ssh/sshd_config?

I'm trying to edit my /etc/ssh/sshd_config file as per these instructions to properly set up git on my Synology NAS: http://www.wonko.de/2010/04/set-up-git-on-synology-nas.html (step 6) However, when ...
0
votes
2answers
6k views

I have WHM root access but unable to connect using SSH

I have root WHM password for a domain and I am able to login using following URL http://domain_name/whm But when I use the same root password to connect to server using SSH I get access denied ...
0
votes
2answers
135 views

Working out some quirks of a master SSH server

I am starting a web hosting company and there are a few details that I have yet to figure out, one of them being some sort of SSH VPN to connect to our servers running CentOS 6 with cPanel. So this ...
1
vote
1answer
217 views

Why does WinSCP connect to /root and nothing else, through OpenSSH?

We set up an Amazon EC2 instance and managed to WinSCP into it by setting up WinSSHD on the server. As WinSSHD is commercial, we were looking for a free alternative and opted to try OpenSSH, which I ...
3
votes
1answer
2k views

SSH VPN tunnel without having to enable root

ive been trying to setup a VPN SSH tunnel and ive had success executing ssh -Nv -w 0:0 root@192.168.2.2 -p 50 however what i am wondering is, can i do the tunneling without having root unlocked ...
1
vote
1answer
520 views

Access denied for root user

my ssh has started to refuse users from out of the blue. I started to connect via Putty as root, me and other users. login as: root root@31.XX.XX.XXX's password: Access denied What could be wrong? ...
2
votes
3answers
829 views

SSH hosts.deny and hosts.allow

I have this content in hosts.deny (with a new line at the end): # # hosts.deny This file describes the names of the hosts which are # *not* allowed to use the local INET services, as decided ...
2
votes
2answers
2k views

SFTP Access Restricted with new Sudo Root User

So in attempts to secure my server a bit, I created a new user with su - root access and denied root login. Now I can't SFTP any files on my server through Filezilla with this user. These are the ...
2
votes
2answers
493 views

Remotely use root over ssh for unison

I'm a little confused on how to run unison to sync files with group and owner attributes on an ubuntu system, as you need to be root. But I need to do this remotely and automated. I know I can set up ...
0
votes
3answers
312 views

Git: push via ssh to a root owned repository with ssh root logins disabled

is that even possible? Summary, i'm running puppet master on a server and ideally we want root logins via ssh disabled, we want to force all access via sudo if root access required however we have ...
8
votes
1answer
545 views

Allow password access for all users except root?

I want to leave the root user enabled on my servers for convenience, and the only reason people are against the idea (that I know of) is brute-force attacks on SSH. So, is there is a way in SSH to ...
92
votes
23answers
7k views

How do you make it obvious you are on a production system?

A few of us at my company have root access on production servers. We are looking for a good way to make it exceedingly clear when we have ssh'd in. A few ideas we have had are: Bright red prompt ...
1
vote
2answers
176 views

Debian: Unable to connect to ssh with a user I just created

I've a debian 6 installed on a server. I installed ingres on this server, which runs now with the user "ingres", I want to connect to ssh with the ingres user(for many reason, one of them is that ...
4
votes
2answers
2k views

RSync over SSH - permission denied even though the user is in the root group

I have a need to copy files between servers through the web. I'm using RSYNC over ssh to do so. The problem is, I need to be able to transfer files, no matter where the files is. I created a user ...
0
votes
2answers
500 views

How can I limit root to being able to only login on the console via /etc/security/access.conf

I know that I can prevent root from logging in via ssh with /etc/ssh/sshd_config but the auditors also want to see it done in /etc/security/access.conf as well. It seems doable but I can't determine ...
1
vote
4answers
148 views

Explanation of my SSH log file please

I'm trying to understand what I'm seeing in my SSH log file so that I can best defend against the bad guys. Particularly interested in understanding the number listed after "port" in the log. Here is ...
3
votes
3answers
5k views

How Ubuntu cloud version enforces the “no root login” over ssh?

I'm looking to tweak ubuntu cloud version default setup where is denies root login. Attempting to connect to such machine yields: maxim@maxim-desktop:~/workspace/integration/deployengine$ ssh ...
7
votes
7answers
591 views

Why are we advised to not log into SSH as Root [duplicate]

Possible Duplicate: Why shouldn't root be allowed to login via ssh? Hi, Why is it safer to not log in as root via SSH? Since the login is SSH protected the root password is not in plain ...
1
vote
5answers
2k views

Can't login using ssh as root

I am trying to virtualize an old linux server, and the PtoV software requires a password login as root via ssh. However, the root login is being prevented with a "Permission Denied" error on the ...
7
votes
4answers
5k views

Allow root login from one IP address only

I have centos5. Is there any way that i can log into my vps server with root user from particular ip address only. I have read that i can use private key to login into sshd. But the problem is i am ...
2
votes
3answers
708 views

Root password contains character that can't be entered

Don't know what happend really. I changed the root password to a long password containing weird characters, and triple checked that I could log in with it, and has been ever since. Until now. I think ...
0
votes
3answers
181 views

Setting up key based authentication for root

I connect to one linux machine with a standard user account and use sudo when it is necessary to perform something a little above my users station. One of those things would be to perform a pull ...
1
vote
1answer
1k views

Used recursive chown on the root directory

Im gonna need some help restoring my ssh settings as i screwed everything up by calling this command: chown -R user / At the moment im not able to access the site through ssh/ftp since the ...
8
votes
6answers
441 views

Why shouldn't root be allowed to login via ssh?

why should root access be disabled for ssh? I always hear that's for security reasons. But I don't get it. What's different to login as non-root and then sudo su -? What's the preferred way to handle ...
5
votes
4answers
3k views

Rsync over ssh with root access on both sides

I have one older ubuntu server, and one newer debian server and I am migrating data from the old one to the new one. I want to use rsync to transfer data across to make final migration easier and ...
1
vote
3answers
2k views

How to run a script in Ubuntu via SSH as superuser?

So I have a script that needs to be executed remotely as root. This isn't a problem with most Linux distros since they have a root account. But since Ubuntu does not, executing anything as root ...
7
votes
5answers
825 views

Why would sshd allow root logins by default?

I'm currently working on hardening my servers against hacking- amongst other things, i'm getting a load of attempts to log on as root over ssh. While i've implemented fail2ban, i'm wondering, why root ...
8
votes
4answers
659 views

Remote Root Login

I know one of the first things you do to secure a server is disallowing remote root login. Passwords are pretty weak; what do people think of only allowing root login via ssh keys or other ...
5
votes
5answers
2k views

SSH - How to include “-t command” in the ~/.ssh/config file

I use ~/.ssh/config file so that I can easily enter ssh myserver and it'll provide the correct username, port, hostname, identity file, etc. However for many servers, the first thing I do is enter su ...
0
votes
1answer
3k views

How to enable ssh on SunOs 5.10?

I need to launch ssh daemon on a SunOs 5.10 anyone knows how to help (command, etc)?
4
votes
6answers
3k views

If I change the root password on a linux server, can someone still access root if they created an SSH authorized_key for root user?

I'm not even sure if I asked that right. Anytime someone mentions changing the root password, they mention changing /etc/passwd, or just using the passwd command, but I've never heard of having to ...