Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jul 29, 2015 4:01 pm 
Offline
Junior Member

Joined: Sat Mar 28, 2015 12:28 pm
Posts: 32
When I tried

Code:
sudo service ssh restart


I'm getting:

Code:
ssh stop/waiting
ssh start/running, process 4070


Why is this and how can I make it restart?


Top
   
PostPosted: Wed Jul 29, 2015 4:34 pm 
Offline
Junior Member
User avatar

Joined: Mon Jul 07, 2014 8:47 pm
Posts: 21
Website: https://arlen.io
Location: Earth
Twitter: arlenwoot
That's what it shows when ssh is restarted. That means it was successful. \o/

4070 is the new PID, can check it with ps auxf


Last edited by arlen on Wed Jul 29, 2015 4:42 pm, edited 1 time in total.

Top
   
PostPosted: Wed Jul 29, 2015 4:39 pm 
Offline
Junior Member

Joined: Sat Mar 28, 2015 12:28 pm
Posts: 32
Oh, ok. Thank you!


Top
   
PostPosted: Wed Jul 29, 2015 9:14 pm 
Offline
Junior Member

Joined: Sat Mar 28, 2015 12:28 pm
Posts: 32
After securing the server I can't upload files because the ftp client doesn't write sudo before sending commands. How can I get around this? How are people uploading their files?


Top
   
PostPosted: Wed Jul 29, 2015 11:29 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
sftp or scp. why would it need to run sudo?


Top
   
PostPosted: Wed Jul 29, 2015 11:51 pm 
Offline
Junior Member

Joined: Sat Mar 28, 2015 12:28 pm
Posts: 32
I was following the instructions here:

https://www.linode.com/docs/security/se ... our-server

If you scroll down a bit you'll see "Disabling SSH Password Authentication and Root Login". This makes it so I have to run sudo. Currently I can log on with a ftp client but I can't upload/overwrite anything. Now I can only log on using SSH Key pair authentication which makes it a lot more secure but I can't update the files easily. I currently have to change folder ownership then upload files and then revert the ownership back. I was wondering how people get around this?

I've already tried uploading files via sftp or scp and it didn't work but I'm open to suggestions on how others have done it (without constantly having to change ownership of folders and what not).


Top
   
PostPosted: Thu Jul 30, 2015 11:05 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
are you trying to update files owned by root via FTP? if so, why do you need to update root owned files so often? Content shouldn't be owned by root. Config shouldn't need to be updated *that* often.


Top
   
PostPosted: Fri Jul 31, 2015 11:21 am 
Offline
Junior Member

Joined: Sat Mar 28, 2015 12:28 pm
Posts: 32
Yes, root owns the files. I need to test to see if everything looks right before it goes up on the main server. So I should change ownership to a non root user? I don't think I'm following, can you explain in more detail?


Top
   
PostPosted: Fri Jul 31, 2015 1:08 pm 
Offline
Junior Member

Joined: Sat Mar 28, 2015 12:28 pm
Posts: 32
Hey thanks, I changed the owner for the public folder to my user and everything works well for copying files over. Now I just have figure out how to get Incrond Inotify to work with current permissions. You wouldn't happen to be familiar with it would you?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group