Connecting to remote server by ssh using ksh [closed] - ssh

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I am trying to connect to a remote server through ssh.
$ssh "username"#host "command"
which prompts for password which can be done in interactive systems.But I want to automate this by passing the password as argument instead of typing interactively.
I am using ksh shell and I can't use expect is there any ksh specific solution to connect to remote server.

Just set up authentication keys so that you don't need passwords. See man ssh-keygen for full details.

Related

Problem with my mc server created on google vps [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I have mc server and when I closing the console my server has stopping, What can I do to keep it active 24/7
This question isn't suited for StackOverflow but more of superuser.
You can try using docker containers for the server.
You can do this on all platforms with docker desktop for windows
You can use the screen command on Linux.
It's also recommended to seek a Minecraft host.

Transferring a passphrase protected private SSH key to another machine [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am trying to use the same SSH keys on a new machine. This was my original setup:
~/.ssh/mykey
~/.ssh has 700 permission
~/.ssh/mykey has 600 permission
I used ssh -i to specify the key used to log into a server.
I copied the paths, contents, and permissions of mykey to my new laptop.
Unfortunately, the passphrase I used old machine is not working for my new laptop. Am I missing a step?
It looks like it is better to just create a new SSH key.

problem when copying a file over putty ssh to my windows machine [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
i want to copy file from remote server that i connect with the following paramters
Ip : 192.168.1.1
port : 2202
then i log in with user and password :
user:root
pass:1234
but when i try to use this script it shows that connection is refused
pscp 192.168.1.1:/etc/hosts c:\temp\example-hosts.txt
is that correct or i should put the user and password somewhere to authenticate and be able to copy the files
You need to specify the port as it's not the standard port.
Try
pscp -P 2202 192.168.1.1:/etc/hosts c:\temp\example-hosts.txt

Delete SSH key without SSH access [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
My sshd is refusing to restart because of the following error:
# WARNING: UNPROTECTED PRIVATE KEY FILE! #
However, i cant figure out how to delete the unsafe ssh keys without having the ssh access. What to do?
You need to chmod 600 ~/.ssh/rsa_key.
This protects the keyfile from other users on the same system beeing able to read/steal it.

Login ftp with access ssh? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
How to login to an SSH server using an FTP client (such as Filezilla)? I have the server's IP, my .ppk file and its passphrase? Is this possible?
I tried it with host: XXX.X.XXX.XXX and the login passphrase but I don't have a password.
You can use sftp. Add your key in Filezilla sftp settings like so:
and then connect to XXX.X.XXX.XXX and set port to 22, empty password: