Unix Technical Forum

scp not working after upgrade, ssh is fine

This is a discussion on scp not working after upgrade, ssh is fine within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> I recently upgraded PAM and OpenSSH to versions pam-0.77 and openssh-3.8.1_p1-r1. My pam config for sshd accidentally got erased ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 07:38 AM
newcastle
 
Posts: n/a
Default scp not working after upgrade, ssh is fine

I recently upgraded PAM and OpenSSH to versions pam-0.77 and
openssh-3.8.1_p1-r1. My pam config for sshd accidentally got erased in
the process. ssh works fine, but I cannot scp. With scp -v I get the
following after entering the password:

Password:
debug1: ssh-userauth2 successful: method keyboard-interactive
debug1: fd 4 setting O_NONBLOCK
debug1: fd 5 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug1: send channel open 0
debug1: Entering interactive session.
debug1: ssh_session2_setup: id 0
debug1: Sending command: scp -v -t /home/dpix
debug1: channel request 0: exec
debug1: channel 0: open confirm rwindow 0 rmax 32768
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: rcvd eof
debug1: channel 0: output open -> drain
debug1: channel 0: obuf empty
debug1: channel 0: close_write
debug1: channel 0: output drain -> closed
debug1: channel 0: rcvd close
debug1: channel 0: close_read
debug1: channel 0: input open -> closed
debug1: channel 0: almost dead
debug1: channel 0: gc: notify user
debug1: channel 0: gc: user detached
debug1: channel 0: send close
debug1: channel 0: is dead
debug1: channel 0: garbage collecting
debug1: channel_free: channel 0: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.1 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 255
lost connection

My auth log led me to believe it was a problem with pam. When I use
'UsePAM no' in sshd_config, scp works fine. Contents of
/var/log/auth.log and /etc/pam.d/sshd follows.

/var/log/auth.log:

Aug 1 11:59:13 dpix sshd(pam_unix)[8182]: session opened for user dpix
by (uid=0)
Aug 1 11:59:13 dpix sshd[8182]: fatal: PAM: pam_open_session():
Permission denied

/etc/pam.d/sshd:


#%PAM-1.0
auth required pam_unix.so nullok
auth required pam_shells.so
auth required pam_nologin.so
auth required pam_env.so
account required pam_unix.so
password required pam_cracklib.so difok=3 retry=3 minlen=8
dcredit=2 ocredit=2 use_authtok
password required pam_unix.so shadow md5
session required pam_unix.so
session requierd pam_limits.so

What am I missing in my pam config file for sshd? Or is it something else?

Thanks in advance,
Dan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com