06-02-2013
Quote:
Originally Posted by
mirni
From man ssh :
Thanks mirni, but I tried:
ssh -o PasswordAuthentication=yes root@remote_vm
It did not work. Not clear if we are in the same page. I actually asked how to change the /etc/ssh/sshd_config which defines "PasswordAuthentication no" by command line in script in the remote_vm machine. I guess the ssh -o option is only to change /etc/ssh/ssh_config setting, is it correct?
Thank you.
Kind regards.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Can anybody brief me the difference between ssh_config & sshd_config. I am looking for the functionality difference.
any help appreciated
Shihab (4 Replies)
Discussion started by: shihabvk
4 Replies
2. Shell Programming and Scripting
Thanks to the help from this forum i've learned a lot of good stuff but I still have questions :).
I need to write a script that checks if ssh to a box requires a password. I need it will be an "if" statement, if ssh requires password, then do a key exchange(with i already have). Just need to... (5 Replies)
Discussion started by: elbombillo
5 Replies
3. Red Hat
Hi All,
On /etc/ssh/sshd_config remark, many of the lines are commented out, like below
#PubkeyAuthentication yes
Does that mean the default of PubkeyAuthentication is no (or yes)?
Thanks for any comment you may add. (1 Reply)
Discussion started by: itik
1 Replies
4. AIX
Hi All,
On sshd_config remark, many of the lines are commented out, like below
#PubkeyAuthentication yes
Does that mean the default of PubkeyAuthentication is no (or yes)?
Thanks for any comment you may add.
edit by bakunin: corrected a typo in the title to preserve searchability... (2 Replies)
Discussion started by: itik
2 Replies
5. Solaris
I have what should be a simple request, (I hope so anyways), I need the default sshd_config for Sun SSH 1.1.1. A series of scripts modify our systems to work with the rest of our system. They are supposed to create backups along the way, but alas, it seems a few too many people like the filename... (1 Reply)
Discussion started by: Corry
1 Replies
6. Shell Programming and Scripting
I am not able to determine if the above setting is for outgoing or incoming connections. I do not have the rights to change it on my system to try this out. Anyone can help shed some light on this?
Thank you. (2 Replies)
Discussion started by: Leion
2 Replies
7. UNIX for Advanced & Expert Users
Version: Oracle Enterprise Linux 6.3
Running on VMWare Workstation
When I login to my Linux VM from putty, the third line prompting for password comes only after few seconds.
login as: root
Access denied
root@192.168.0.235's password: ---> It takes around 5 seconds to get this prompt
I... (1 Reply)
Discussion started by: John K
1 Replies
8. Shell Programming and Scripting
I'm using redhat and have an odd issue with a nested ssh call.
ssh -i ~/.ssh/transfer-key -q transfer@fserver1 ]
&& ssh -i ~/.ssh/transfer-key transfer@fserver1 "ssh -i ~/.ssh/sftp-key sftpin@10.0.0.1 ]"
&& ssh -i ~/.ssh/transfer-key transfer@fserver1 "scp -i ~/.ssh/sftp-key /home/S/outbox/*... (2 Replies)
Discussion started by: say170
2 Replies
9. Red Hat
Hello all,
By mistake i edited sshd_config file and made passwordauthentication no , Now i don't have key to login.
Is there any way, i can revert the changes, I am not able to login to the box at well.
Need help.
Thanks,
saurau (3 Replies)
Discussion started by: saurau
3 Replies
10. Solaris
Hi All,
As part of LDAP implementation we need to restrict users/groups locally on solaris machine:
Options tried:
sshd_config: as far as my testing it is restricting either user or group, as per the first preference.
pam_access.so by default I am unable to find(need some help if this is... (0 Replies)
Discussion started by: Sridaran
0 Replies
LEARN ABOUT MINIX
sftp-server
sftp-server(1M) System Administration Commands sftp-server(1M)
NAME
sftp-server - SFTP server subsystem
SYNOPSIS
/usr/lib/ssh/sftp-server
DESCRIPTION
sftp-server implements the server side of the SSH File Transfer Protocol as defined in the IETF draft-ietf-secsh-filexfer.
sftp-server is a subsystem for sshd(1M) and must not be run directly. There are no options or config settings.
To enable the sftp-server subsystem for sshd add the following to /etc/ssh/sshd_config:
Subsystem sftp /usr/lib/ssh/sftp-server
See sshd_config(4) for a description of the format and contents of that file.
There is no relationship between the protocol used by sftp-server and the FTP protocol (RFC 959) provided by in.ftpd.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
FILES
/usr/lib/sftp-server
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsshdu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
sftp(1), ssh(1), ssh-add(1), ssh-keygen(1), sshd(1M), sshd_config(4), attributes(5)
To view license terms, attribution, and copyright for OpenSSH, the default path is /var/sadm/pkg/SUNWsshdr/install/copyright. If the
Solaris operating environment has been installed anywhere other than the default, modify the given path to access the file at the installed
location.
AUTHOR
Markus Friedl
SunOS 5.10 30 Jul 2003 sftp-server(1M)