- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Secure OS Software for Linux
- >
- Re: SCP and SSH-Agent on SuSE8.1
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2003 02:39 AM
тАО05-08-2003 02:39 AM
SCP and SSH-Agent on SuSE8.1
I have a problem here on a SuSE8.1 box to get scp to work.
I need to use ssh/scp frequently for shell access and file transfer over a firewall. The ssh version used is OpenSSH_3.4p1.
The setup is thus: Usually a ssh connection is opened with a command similar to "ssh -t
Here is the problem: When I login to the SuSE box, ssh-agent reads my passphrase and I can ssh to any system through the firewall without problems. But copying files using scp does not work. The error is: "Need passphrase for
BTW: The scp command used is "scp
Thanks for your help
Mick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2003 05:43 AM
тАО05-08-2003 05:43 AM
Re: SCP and SSH-Agent on SuSE8.1
Though originally authored for HP-UX, it works, even in a mixed environment.
I think exchanging public keys will solve this problem. This assumes your firewall is stateless and doesn't block port 22.
Attached.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2003 05:56 AM
тАО05-08-2003 05:56 AM
Re: SCP and SSH-Agent on SuSE8.1
my public keys are on all remote machines I am connecting to, and connecting with ssh works perfectly. Only scp does not work.
The firewall is actually not a "real" firewall, but an ssh relay, I probably should have said that. So port blocking is not an issue.
As I said before, I have exactly the same setup on a RedHat 6.0 box, and there scp works for some reason. The differences are the SSH version (SSH Version OpenSSH_2.3.0p1 on RedHat) and the ssh agent is called from the .bash_profile instead of .xsession.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2003 06:12 AM
тАО05-08-2003 06:12 AM
Re: SCP and SSH-Agent on SuSE8.1
Thats key. Is the TERM variable set in .bash_profile an .xsession ?
stty -a output should do the same.
This should work. ssh and scp are part of the same tool set.
You might want to try reinstalling the package on the client giving you the trouble. Also, make sure you get any updates or security fixes in.
Head scratcher here, please post resolution so at least I can learn from this.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2003 12:46 AM
тАО05-09-2003 12:46 AM
Re: SCP and SSH-Agent on SuSE8.1
> You have no controlling tty. Cannot read passphrase
> Thats key. Is the TERM variable set in .bash_profile an .xsession ?
The problem is that this error message is sent from the ssh relay, not from my local host. $TERM is set to xterm. But on the relay I don't have a tty, that's why I need to use the "-t" option when using ssh.
I have submitted this as a bug to the OpenSSH developers:
http://bugzilla.mindrot.org/show_bug.cgi?id=557
Straight answer I got was to submit a debug trace and upgrade to version 3.6.1, which I will have a look at.
I'll keep you posted.
Mick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 05:31 AM
тАО05-30-2003 05:31 AM
Re: SCP and SSH-Agent on SuSE8.1
The solution was to remove these two lines from the source file "scp.c":
addargs(&args, "-oForwardAgent no");
addargs(&args, "-oClearAllForwardings yes");
Now it is working. I am still wondering why the options were preset like this in the code, like this scp can't work with a ssh relay that doesn't allocate ttys.
Regards
Mick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 06:33 AM
тАО05-30-2003 06:33 AM
Re: SCP and SSH-Agent on SuSE8.1
Thanks for posting your solution.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com