Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-21-2012, 10:45 PM   #1
LQ Newbie
Registered: Dec 2010
Posts: 23

Rep: Reputation: 0
Exclamation Suddenly can't ssh/ sftp with initially created user

Linux server, 12.04 LTS
I followed this guide:
Works great for my sftp user, the user can't access via ssh and only to his directory. However, the user I made when I first installed my server suddenly can't ssh in via PuTTy: it gives an error like " the software caused the..." (I can't remember the rest of the error.) So I made a new user with a home directory and can login just with this new user via ssh and sftp just fine, although all that is displayed for this new user is a $ sign instead of "user@(ip address)", like when I could login via ssh with my first account before the guide. Someone please help?
Old 07-22-2012, 12:22 AM   #2
LQ Newbie
Registered: Dec 2010
Posts: 23

Original Poster
Rep: Reputation: 0
If it helps, I accidentally removed my first account from the admin group. I thought I added it back. I also can't use the new account- it's not part of the sudoers group, same error. Sorry for the beginner questions, and any help is much appreciated!
Old 07-24-2012, 10:15 PM   #3
Registered: Dec 2010
Posts: 242

Rep: Reputation: 1

Check whether the ssh key kept in known_host file at destination host is same as kept at your side, If it is deleted then you might face some problem.
Old 07-24-2012, 11:19 PM   #4
LQ Newbie
Registered: Dec 2010
Posts: 23

Original Poster
Rep: Reputation: 0
Thanks for the answer. However, due to time I simply reinstalled and reattempted to chroot an sftp account. This time it succeeded without anything going wrong, and now everything is set up as desired. All I can figure is that I broke sudo and though I fixed it, when I didn't. Thanks for the response, though!
Old 07-24-2012, 11:34 PM   #5
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
I quickly scanned that article. I didn't see anything about mounting the ftpuser's partition with the noexec & nosuid options.
If you use " ChrootDirectory" option to chroot the directory, this is necessary. If the directory is on the root partition, and you can't, look at using a bind mount.


ssh access

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can sftp into root account, but not created user? ashamanmiller Linux - Server 23 02-04-2012 11:51 AM
[SOLVED] Cannot log into CentOS server via SSH with newly created user Jadedkill Linux - Server 4 08-11-2011 08:37 AM
sftp user with limited ssh permissions to autologin using publickey blazingrock4u Linux - Security 1 10-18-2010 11:52 AM
how to create sftp user only in red hat 4 not ftp user ..only sftp user princeu28 Linux - Newbie 1 10-14-2008 08:10 AM
User Creationg : ssh/sftp user jail to $HOME only routers Solaris / OpenSolaris 2 10-29-2007 11:28 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration