LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-22-2012, 06:22 AM   #16
ravishankaradepu
LQ Newbie
 
Registered: Dec 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by pan64 View Post
you can insert a line into that log-session script:
Code:
#!/bin/sh
set -xv           # <== insert this line
#
# log-session
# John Simpson <jms1@jms1.net> 2008-08-06
and test it again. That one line is not an acceptable result.
Also you can try to move it:
LOGFILE=/tmp/sshlog.$NOW.$IP
Same Lost connection
 
Old 05-22-2012, 07:18 AM   #17
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
you need to look the server side, the logfile what you created right now as /tmp/sshlog.$NOW.$IP
it is not a solution just we are looking for an error message which can help us to solve it.
 
Old 05-23-2012, 03:26 AM   #18
ravishankaradepu
LQ Newbie
 
Registered: Dec 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
you need to look the server side, the logfile what you created right now as /tmp/sshlog.$NOW.$IP
it is not a solution just we are looking for an error message which can help us to solve it.
Some unreadable content was written to it
 
Old 06-01-2012, 06:34 PM   #19
annoraxx
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
Make sure the user account you're using on the remote machine has its default shell set to a valid value (e.g. /bin/bash). To check the currently set shell use:
Code:
grep <username> /etc/passwd
(the last value in the row is the default shell)

To change this value to /bin/bash use:
Code:
chsh -s /bin/bash <username>
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ssh scp key not working to ssh/scp without password anon091 Linux - Newbie 9 08-22-2011 04:28 PM
SCP command is not working properly due to SSH enabled musammil123 Linux - Server 1 05-27-2011 03:57 PM
Chroot SSH problem: ssh working, not SFTP & SCP. NaCo Linux - Security 3 02-01-2009 02:23 AM
ssh/scp without password not working Mauline Linux - Security 4 03-30-2005 09:26 PM
ssh working, but not sftp scp hardigunawan Linux - Networking 2 05-02-2003 02:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:44 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