Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
When I ssh to a box without a command it gives me an interactive shell. If I were to explicitly say to run bash, it doesn't work interactively. I have to send an interrupt to stop. If I wanted to run an interactive program like mysql, can I do it without first starting the interactive shell?
You need to provide the -t option to ssh, which allocates a terminal through which you can interact with the remote command.
ssh -t host mysql
Related
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
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Is secure FTP (sftp) using SSH (port number 22) always possible when there is ssh available? Currently I'm using PuTTY for SSH. I want to upload files using CuteFTP Pro.
Or do I need ftp server on the server-side?
For sshd (OpenSSH SSH daemon), its a configuration option, which by default is switched on. Look out for the line
Subsystem sftp /usr/lib/ssh/sftp-server
in /etc/ssh/sshd_config. To disable just remove that line.
No, on the server side you need an sftp-binary as well. OpenSSH ships one they call sftp-server. Usually resides in /usr/lib/openssh/sftp-server (on a Debian machine for example)
CuteFTP has support for sftp. But keep in mind that your server needs sftp-server on that end first.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have some options in my ~/.ssh/config:
Host * Ciphers arcfour,blowfish-cbc
These options are intended to speed up transfers.
Will sshfs use these options when I do a mount?
Yes, sshfs simply calls plain old ssh which is also why you can use your per-host configuration from .ssh/config. Using -F you can specify a different ssh_config if that's what you need.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Can someone help me with commands? I'm trying to upload file to server based on linux.
You need an scp client. Putty is not one. You can use WinSCP or PSCP. Both are free software.
"C:\Program Files\PuTTY\pscp.exe" -scp file.py server.com:
file.py will be uploaded into your HOME dir on remote server.
or when the remote server has a different user, use "C:\Program Files\PuTTY\pscp.exe" -l username -scp file.py server.com:
After connecting to the server pscp will ask for a password.
Use WinSCP for file transfer over SSH, putty is only for SSH commands.
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.