- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: unable to scp but ssh works
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
тАО07-27-2008 11:29 PM
тАО07-27-2008 11:29 PM
unable to scp but ssh works
I am able to ssh to ulogin on linux box(192.168.24.2) but not copy file under ulgoin home dir using scp from another machine?
here is ulogin account:-
#cat /etc/passwd | grep ulogin
ulogin:x:100:100:,,,:/tftpboot/chroot//./ulogin:/bin/sh
#cat /etc/group | grep ulogin
users:x:100:ulogin
now when i am going to scp this machine from another machine like below
scp ulogin@192.168.24.2:/abc.txt .
scp:/abc.txt:No such file or directory
Regards,
MKS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2008 01:21 AM
тАО07-28-2008 01:21 AM
Re: unable to scp but ssh works
Your scp request is trying to write to the root directory.
You should and might have access restrictions there.
Try /tmp
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
тАО07-28-2008 01:35 AM
тАО07-28-2008 01:35 AM
Re: unable to scp but ssh works
scp ulogin@192.168.24.2:/tmp/file.txt .
Host '192.168.24.2' is not in the trusted hosts file.
(fingerprint md5 1c:60:7e:d9:3a:69:db:c7:64:e0:68:ff:eb:91:16:29)
Do you want to continue connecting? (y/n)
y
/bin/ssh: connection to ulogin@192.168.24.1:22 exited: No auth methods could be used.
Authorised users only. All activity may be monitored, logged and reported
What should I do to give for permission to copy?
Thx,
MKS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2008 01:38 AM
тАО07-28-2008 01:38 AM
Re: unable to scp but ssh works
/bin/ssh: connection to ulogin@192.168.24.1:22 exited: No auth methods could be used.
correct line is as below
/bin/ssh: connection to ulogin@192.168.24.2:22 exited: No auth methods could be used.
Thanks,
MKS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2008 04:54 AM
тАО07-28-2008 04:54 AM
Re: unable to scp but ssh works
PasswordAuthentication yes
in the sshd_config on the remote server and restarting sshd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2008 07:09 AM
тАО07-28-2008 07:09 AM
Re: unable to scp but ssh works
Try inverting the test, copy a file from the local host to the remote host in the default directory:
scp testfile ulogin@192.168.24.2:
Identify where testfile was uploaded. Then you will be able to identify the path you should specify for scp. Probably you should run:
scp ulogin@192.168.24.2:/tftpboot/chroot/ulogin/abc.txt .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2008 09:19 AM
тАО07-28-2008 09:19 AM
Re: unable to scp but ssh works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2008 10:50 AM
тАО07-28-2008 10:50 AM
Re: unable to scp but ssh works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2008 04:32 PM
тАО07-28-2008 04:32 PM
Re: unable to scp but ssh works
scp ulogin@192.168.24.2:/home/ulogin/abc.txt .
If chroot is not properly confiugured, it should work anyway.