LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 10-24-2020, 10:19 AM   #16
islammanjurul
LQ Newbie
 
Registered: Dec 2015
Posts: 26

Original Poster
Rep: Reputation: Disabled

any solution here?
 
Old 10-26-2020, 09:01 AM   #17
islammanjurul
LQ Newbie
 
Registered: Dec 2015
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
The configuration looks normal. Have you changed 'usedns' though?

The log output shows that sshd runs and appears to be listening on all interfaces.

Two more questions while waiting for the strace:

Can you SSH to it from the same machine which it is on using the local host address?

Can you SSH to it from the same machine which it is on using an external address?
using the localhost address, ssh user@localhost gives connection refused on port 2222. Tried /usr/sbin/sshd -ddd , but this time the process is not getting started. bad day... please help.

Not that, I am trying on a different port 2222 other than port 22 for testing purpose, but no luck.
 
Old 11-13-2020, 02:00 AM   #18
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
Try to install Dropbear SSH and see if that one works in parallel with OpenSSH.
You will need Epel repository.
Code:
sudo yum install epel-release
sudo yum install dropbear
Mind to change port so it does not conflict with any other alrdy in use.
Code:
/etc/default/dropbear
# the TCP port that Dropbear listens on
DROPBEAR_PORT=22
Let us know about results.

Last edited by czezz; 11-13-2020 at 02:28 AM.
 
Old 11-19-2020, 02:22 AM   #19
islammanjurul
LQ Newbie
 
Registered: Dec 2015
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by czezz View Post
Try to install Dropbear SSH and see if that one works in parallel with OpenSSH.
You will need Epel repository.
Code:
sudo yum install epel-release
sudo yum install dropbear
Mind to change port so it does not conflict with any other alrdy in use.
Code:
/etc/default/dropbear
# the TCP port that Dropbear listens on
DROPBEAR_PORT=22
Let us know about results.
Dropbear is working amazingly, no issue so far on doing SSH, but cannot do SFTP, it requires the openssh, any idea how to get sftp work with dropbear? I got some guide but they instructed to compile.
 
Old 11-19-2020, 04:10 AM   #20
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
You can try to reuse your existing sftp server but keep in mind it belongs to OpenSSH, so in your case it is likely it wont work.
On the Droprear config file, find the section for SFTP and add following one:
Code:
/usr/libexec/openssh/sftp-server

Note: this should be default path for sftp-server on RHEL but I dont have any RHEL here at the moment, so to confirm, execute this:
Code:
find /usr -type f -iname "*sftp-server*"
Note2: if you can use SCP instead of SFTP, then it should work by default with Dropbear.
 
Old 11-19-2020, 04:56 AM   #21
islammanjurul
LQ Newbie
 
Registered: Dec 2015
Posts: 26

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by czezz View Post
You can try to reuse your existing sftp server but keep in mind it belongs to OpenSSH, so in your case it is likely it wont work.
On the Droprear config file, find the section for SFTP and add following one:
Code:
/usr/libexec/openssh/sftp-server

Note: this should be default path for sftp-server on RHEL but I dont have any RHEL here at the moment, so to confirm, execute this:
Code:
find /usr -type f -iname "*sftp-server*"
Note2: if you can use SCP instead of SFTP, then it should work by default with Dropbear.
my dropbear config at /etc/default/dropbear was fully blank, I added the port config as per your code, but for SFTP I don't know how to write, but i did the below:

Code:
SFTPSERVER_PATH=/usr/libexec/openssh/sftp-server
I found the sftp-server path there.

Can you provide me a complete dropbear config file which I can use as per my need and other comment out?

And I am getting the following error when doing sftp from my local machine:

Code:
bash: /usr/libexec/sftp-server: No such file or directory
Connection closed
It means my local machine is looking for the sftp on /usr/libexec, but on the actual cloud VM, the sftp location is at /usr/libexec/openssh directory

can I just mv them to the required directory? will it work?

Last edited by islammanjurul; 11-19-2020 at 05:00 AM.
 
Old 11-19-2020, 05:20 AM   #22
islammanjurul
LQ Newbie
 
Registered: Dec 2015
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by islammanjurul View Post
my dropbear config at /etc/default/dropbear was fully blank, I added the port config as per your code, but for SFTP I don't know how to write, but i did the below:

Code:
SFTPSERVER_PATH=/usr/libexec/openssh/sftp-server
I found the sftp-server path there.

Can you provide me a complete dropbear config file which I can use as per my need and other comment out?

And I am getting the following error when doing sftp from my local machine:

Code:
bash: /usr/libexec/sftp-server: No such file or directory
Connection closed
It means my local machine is looking for the sftp on /usr/libexec, but on the actual cloud VM, the sftp location is at /usr/libexec/openssh directory

can I just mv them to the required directory? will it work?
UPDATE:

I copied the sftp-server file from the /usr/libexec/openssh to /usr/libexec and now sftp is working somewhat, still testing if any required.
 
Old 11-19-2020, 08:36 AM   #23
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
Or you can just link it to: /usr/libexec/sftp-server
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Cloud 5: Dispelling cloud myths, the cloud security excuse, and the fight for cloud supremacy LXer Syndicated Linux News 0 06-20-2014 04:12 PM
LXer: Cloud 5: NSA not killing cloud, cloud IT jobs, rise of cloud brokers LXer Syndicated Linux News 0 03-02-2014 09:51 AM
LXer: Cloud 5: Netflix's cloud-connected brain, 5 cloud myths and from cloud to fog LXer Syndicated Linux News 0 02-21-2014 02:20 PM
LXer: It's a cloud, cloud, cloud, cloud world LXer Syndicated Linux News 0 07-23-2013 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 07:58 PM.

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