LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-29-2015, 12:06 PM   #1
EODSteven
Member
 
Registered: Oct 2012
Location: Manchester, Tn
Distribution: Ubuntu 14.04, Windows 8, Windows Server 2012. Ubuntu Server 14.04
Posts: 196

Rep: Reputation: 3
Gaining Root Access on BitVise Client


How to you set up BitVise SFTP Client for Root access on a Linux Server? I type in username root@myserver.com and it keeps saying denied access..Windows 10. When I use FileZilla in Ubuntu, it works fine. The reason and only reason I need this is to edit my PhP and HTML files in /var/www/ Directory and to upload files there as well.

Last edited by EODSteven; 10-29-2015 at 12:13 PM.
 
Old 10-30-2015, 10:08 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
From the bitvise doc:

Quote:
Especially in the case of an SSH-level authentication failure, the SSH server log entries will contain important diagnostic information. It is necessary to inspect the SSH server log entries in this case.
Do you find anything in the log?
Note that you can set up verbose logging on the ssh server.

I also wonder if your Windows box has access at all. What happens if you connect as a normal user?
 
Old 11-01-2015, 03:58 AM   #3
EODSteven
Member
 
Registered: Oct 2012
Location: Manchester, Tn
Distribution: Ubuntu 14.04, Windows 8, Windows Server 2012. Ubuntu Server 14.04
Posts: 196

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by berndbausch View Post
From the bitvise doc:


Do you find anything in the log?
Note that you can set up verbose logging on the ssh server.

I also wonder if your Windows box has access at all. What happens if you connect as a normal user?
I had some brain fog....I went into terminal and simply gained ownership of ( chown /var/www eodcrafter) and now I am able to edit all of my webpage files. I never did find anything about being root on sftp under Bitvise client. It does have info on how to set it up on WCP, but it's strongly discouraged and I am gonna reedit my ssh config to not allow root login under ssh as recommended... Thanks!

Last edited by EODSteven; 11-01-2015 at 04:12 AM. Reason: added info
 
Old 11-01-2015, 04:23 AM   #4
EODSteven
Member
 
Registered: Oct 2012
Location: Manchester, Tn
Distribution: Ubuntu 14.04, Windows 8, Windows Server 2012. Ubuntu Server 14.04
Posts: 196

Original Poster
Rep: Reputation: 3
follow up

Now that's very strange, even after I disabled root login under ssh config, I am still able to log in as root under FileZilla on Ubuntu to the server. Is this perhaps a security flaw?
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2015-11-01 04-18-32.png
Views:	1134
Size:	44.6 KB
ID:	19923  
 
Old 11-01-2015, 04:29 AM   #5
EODSteven
Member
 
Registered: Oct 2012
Location: Manchester, Tn
Distribution: Ubuntu 14.04, Windows 8, Windows Server 2012. Ubuntu Server 14.04
Posts: 196

Original Poster
Rep: Reputation: 3
Brain fog again....

Ahh, I forgot to restart the sshd service....Fixed!
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2015-11-01 04-27-45.png
Views:	828
Size:	13.6 KB
ID:	19924  
 
Old 06-05-2023, 04:44 PM   #6
Wangooroo
LQ Newbie
 
Registered: Jun 2023
Posts: 1

Rep: Reputation: 0
Lightbulb

Quote:
Originally Posted by EODSteven View Post
How to you set up BitVise SFTP Client for Root access on a Linux Server? I type in username root@myserver.com and it keeps saying denied access..Windows 10. When I use FileZilla in Ubuntu, it works fine. The reason and only reason I need this is to edit my PhP and HTML files in /var/www/ Directory and to upload files there as well.
The way to set up Bitvise SSH client to allow SFTP connections with root priveleges is as follows:

1.) Open the Bitvise SSH client profile
2.) Go to the SFTP TAB
3.) In the Subsystem field enter the following:
sudo /usr/libexec/openssh/sftp-server
4.) Save your profile and try conencting to sftp. You should now have access to the entire filesystem as 'root'.
Important Note: My environment is an ec2 instance in AWS.
The instance is running Amazon Linux 2.
For my sftp server the path is: /usr/libexec/openssh/sftp-server

Your path may be different depending on the Linux distribution in use.
 
  


Reply

Tags
bitvise, root



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
User gaining root access opensauce17 Linux - Security 10 02-16-2015 03:28 PM
Gaining root access to file manager Rick069 Linux - Software 2 04-27-2007 10:24 PM
gaining root access thebiggiantmouse Ubuntu 5 09-19-2006 03:53 AM
Gaining root access in Gnome jonasan Linux - Software 5 01-31-2006 11:11 AM
Gaining root access in KDE d-katz Linux - General 9 02-27-2004 05:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:28 AM.

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