Editing
VPS Management
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Login to any machine without a password == This is possible via the use of ssh keys. The process is thus: 1. place the public key for your user (root@mail) in the /root/.ssh/authorized_keys file on the server you wish to login to cat /root/.ssh/id_dsa.pub (paste that into authorized_keys on the target server). If the file doesn't exist, create it. 2. enable root login (usually only applies to FreeBSD). Edit the /etc/ssh/sshd_config on the target server and change: <tt>#PermitRootLogin no</tt> to <tt>PermitRootLogin yes</tt> 3. Restart the sshd on the target machine. First, find the sshd process: jailps <hostname> | grep sshd or vp <VEID> | grep sshd Look for the process resembling: root 17296 0.0 0.0 5280 1036 ? Ss 2011 4:27 /usr/sbin/sshd (this is the sshd) Not: root 6270 0.5 0.0 6808 2536 ? Ss 14:33 0:00 sshd: root [priv] (this is an sshd child- someone already ssh'd in as root) Restart the sshd: kill -1 <PID> Ex: kill -1 17296 You may now ssh in. Once you're done, IF you enabled root login, you should repeat steps 2 and 3 to disable root logins.
Summary:
Please note that all contributions to JCWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JCWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information