Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a windows box about 3 hours from my house. It has ssh server installed (bitvise). I have connectivity from multiple windows machines to it using keys, a specific username, and a passphrase.
I just installed ubuntu on a VM. I went to the file manager, then went to other connections and added sftp:// x.x.x.x:xxxx and it denies the connection. So here is my question; where do i put my username and private key on the ubuntu client so i can connect to the ssh server to put some files on it?
second question, what is a good sftp GUI client as well in case i need to use that at some point?
You do that on the command line. You will be prompted to enter your password.
But you say the server runs Windows. I'm not sure this approach will work. Sorry. Good luck.
I have password authentication off on the server for security. Before any hosts connect, i turn that off
the public key is already on the ssh server. Its the private key thats the issue. All my other machines can connect to the ssh server with no issue using the public/private key generated by the ssh server.
IE, i use the bitvise ssh server key manager to generate a key pair, then i export only the private key to the machines that need to connect. so i have one public key on the server, and 3 private keys that have been exported from that public key for the clients if that makes sense haha. Then each client gets their private key. I then open the sftp client gui such as bitvise client or filezilla, open the private key, enter the username and it connects.
linux should have no issue communicating with a windows box?
Can your VM connect to the Internet?
Is password authentication disabled on the server?
As far as I know bitvise can use rsa keys so it should doable.
Try Filezilla.
the VM can indeed connect to the internet. I do know its hitting the server because the error that comes back is "connection denied" If i turn off the internet the error is "network unavailable" or something close to that.
I have password authentication off for security. I have the bitvise server generate a key pair, then i export the private key and give it to each client that needs to connect. So far thats 2 haha. Ubuntu will be the 3rd client.
the other machines were up in 3 minutes. so far im into this ubuntu machine 12 days with no connectivity and its driving me crazy haha
I have an Android device, trying to connect to a Linux host that uses OpenSSH (modern). The older Android stuff (Connectbot) can't make use of new OpenSSH keys, and I'm getting errors like yours. Ubuntu is likely using newer OpenSSH keys. Your Windows SSH server might not like that. Or the Ubuntu client might not want to use those keys. I'd try Windows -> Linux SSH server and see if that works. Android's OpenSSH client -> Linux does work. This might be a key operability issue, on either the client or server, because it doesn't sound like a connectivity issue. Did you look at the logs? Just throwing this out there, in hopes it might lead to a solution.
sftp user@host
Is a working command, assuming public key login and standard port.
I have an Android device, trying to connect to a Linux host that uses OpenSSH (modern). The older Android stuff (Connectbot) can't make use of new OpenSSH keys, and I'm getting errors like yours. Ubuntu is likely using newer OpenSSH keys. Your Windows SSH server might not like that. Or the Ubuntu client might not want to use those keys. I'd try Windows -> Linux SSH server and see if that works. Android's OpenSSH client -> Linux does work. This might be a key operability issue, on either the client or server, because it doesn't sound like a connectivity issue. Did you look at the logs? Just throwing this out there, in hopes it might lead to a solution.
sftp user@host
Is a working command, assuming public key login and standard port.
it is using the newest version of open ssh and documentation says it works with all current versions of linux in 2022
Its a matter of not knowing where i need to put the private key on the ubuntu machine. It connects, but is denied the connection due to not having a key..
I figured it out. Someone else duplicated my exact setup in a lab and they were able to get it to work. What happened was my key works with file zilla and all clients, but something happened during the export/conversion that it corrupted the key and the libcrypto doesnt like it.
i am know generating ECDSA keys from the client itself
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.