Linux - SoftwareThis 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.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
1. setup the server to make a detailed log from sshd
2. make a connection to the server.
I don't know how .
How can I setup the server ?
With command lines ?
What command lines ?
How can I make a connection ( if ssh terminates ... )?
Would you kindly provide some more detailed directions ?
I am very thankful for your help but I really don't know how to apply your directions .
Please support me with steps to apply them if you can.
It is hard to supply more instructions. You already did it once. You just didn't make a connection needed for sshd to create a log of.
do you mean,
# service sshd stop
then
# /usr/sbin/sshd -d -e
??
I posted the output here without a connection ?
how can i make the connection then ?
I think I told you that I am using the server to make a remote-access on the server itself .
then what connections do you mean ?
How Can I connect the server to itself ?
as a user ,
$ /usr/sbin/sshd -d -p 2000
I got :
/etc/sshd/sshd_config : Permission denied
So, I logged in as root ( to be able to access /usr/sbin/sshd directory
# service sshd stop
#/usr/sbin/sshd -d -p 2000
I got a log until I found ( Server listening on :: port 2000)
Then I pressed Ctrl+C to be able to enter the next command line
# ssh -vvv -p 2000 user@host
I got :
[
OpenSSH_5.3p1, OpenSSL 1.0e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: connecting to master [192.168.0.200] port 2000.
debug1: connect to address 192.168.0.200] port 2000: connection refused
ssh: connect to host master port 2000: connection refused
]
Can you figure out where the problem is and how to solve it ?
does
/etc/ssh/ssh_config
or
/etc//ssh/sshd_config files
need to be checked ?
What shall they have or what may need to be changed ?
Do you think some part of the file is causing the problems ?
I got a log until I found ( Server listening on :: port 2000)
Then I pressed Ctrl+C to be able to enter the next command line
You started the debug server correctly which should be run server side
Then on client side you should run the ssh -vvv user@host command.
From what I read, you started the debug server, then killed the server, then tried to connect to it - all from the same computer.
You'll need two terminal windows for this.
One for starting the sshd server when connected to the server (or doing it locally on the server)
and one for the client connecting to that debug sshd process. The info when the client connects to the server (both client (ssh-vvv) and server side (sshd) is what is needed.)
does
/etc/ssh/ssh_config
or
/etc//ssh/sshd_config files
need to be checked ?
What shall they have or what may need to be changed ?
Do you think some part of the file is causing the problems ?
We don't know why the server is terminating after the connection. I rather doubt there is anything wrong with the configuration files. For one thing, the default configuration files only document what the tools are compiled with for defaults, so normally, they would be all commented out. Only those entries that might be different are uncommented - and those might be the language used, address listened on, the port used, where sftp are, and which authentications to use (either by being disabled, or enabled).
If the configurations were really bad, sshd won't even start.
You started the debug server correctly which should be run server side
Then on client side you should run the ssh -vvv user@host command.
From what I read, you started the debug server, then killed the server, then tried to connect to it - all from the same computer.
You'll need two terminal windows for this.
One for starting the sshd server when connected to the server (or doing it locally on the server)
and one for the client connecting to that debug sshd process. The info when the client connects to the server (both client (ssh-vvv) and server side (sshd) is what is needed.)
I was trying to use the same computer as a server and as client .
I am using the server to make a local connection on the server itself . ( not on another client )
I am using the " ssh " on the server to make connection on the same server ( now acting as a client )
do you think that this process is impossible ?
It might be a good idea to check on "lastlog_openseek: /var/log/lastlog is not a file or directory!". It is possible that it doesn't exist. This is not a fatal error.
It might be a good idea to check on "lastlog_openseek: /var/log/lastlog is not a file or directory!". It is possible that it doesn't exist. This is not a fatal error.
a file named ( last log) does exists in the directory /var/log.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.