1827245 Members
2235 Online
109716 Solutions
New Discussion

sftp configuration

 
SOLVED
Go to solution
yash123
Regular Advisor

sftp configuration

Hi All,

How to configure sftp on hp ux 11.23/11.31
ssh is installed on this system.

Thanks in advance
Yash
10 REPLIES 10
Johnson Punniyalingam
Honored Contributor

Re: sftp configuration

Just try a simple test

example :-

# sftp username@:/tmp

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Steven E. Protter
Exalted Contributor

Re: sftp configuration

Shalom,

Install secure shell.

Secure shell can be found in depot form here:

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA

swinstall -s $PWD/ \*

secure shell is a port of openssh that includes ssh/scp/sftp server and client binaries.


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
yash123
Regular Advisor

Re: sftp configuration

thanks Johnson,


# sftp test test123@HBPTC089:/tmp
Connecting to test...
ssh: test: host nor service provided, or not known
Connection closed

yash123
Regular Advisor

Re: sftp configuration

Hi Steven,

ssh is installed
# swlist grep T1471AA
# T1471AA A.04.50.021 HP-UX Secure Shell
T1471AA.Secure_Shell A.04.50.021 HP-UX Secure Shell

please guide how to proceed further.

Johnson Punniyalingam
Honored Contributor

Re: sftp configuration

# sftp localhost


Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Suraj K Sankari
Honored Contributor
Solution

Re: sftp configuration

Hi,
Are you able to do ssh to the server ?
if yes then you are able to do sftp also if not then
edit this file

/opt/ssh/etc/sshd_config

# override default of no subsystems
Subsystem sftp /opt/ssh/libexec/sftp-server

go to last line replace /opt/ssh/libexec/sftp-server with /usr/lbin/sftp-server
save it

inetd -c restart the net service

then try sftp


Suraj
Steven E. Protter
Exalted Contributor

Re: sftp configuration

Problem with Suraj' answer.

sftp is not run by the inetd daemon

After configuration chanches.

/sbin/init.d/secsh stop
/sbin/init.d/secsh start

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
yash123
Regular Advisor

Re: sftp configuration

how to start/stop ftp daemon
Ganesan R
Honored Contributor

Re: sftp configuration

Hi Yash123,

ftp service is controlled by its master internet daemon inetd. So you cannot stop or start ftp alone. But you can always disable the ftp service alone on /etc/inetd.conf or in /etc/services.

Whenever a ftp request comes inetd daemon will spawn ftpd daemon to answer the request.If you want to stop and start, then you need to restart inetd daemon only.

#/sbin/init.d/inetd stop
#/sbin/init.d/inetd start
Best wishes,

Ganesh.
Javed Khan_1
Valued Contributor

Re: sftp configuration

Hi,

How to start & stop ftp

vi /etc/inetd.conf

hash ftp line and do

inetd -c

vi /etc/inetd.conf uncomment ftp line

inetd -c

Regards,
Javed
Never Give Up