Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
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.
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.
Improve this question
I have a server that currently accepts passwordless ssh login on my desktop computer. Now I want to log into the server using my laptop. If I didn't have access to my desktop computer, how would I be able to add my laptops ssh key? In fact every time I try to ssh into the server from my laptop, it asks me for the password. I'm not sure what this is asking for, what password is it referring to? None of the passwords that I know works, it's always giving back permission denied. Is it the private ssh key I setup from my desktop computer?
Basically, how would I login to the server from the laptop?
This is on a digital ocean server. I changed the sshd_config file and allowed by uncommenting:
PasswordAuthentication yes
AuthorizedKeysFile %h/.ssh/authorized_keys
Apparently both of the above were commented out even when my passwordless ssh worked from the desktop computer. How could this happen?
I know I can do ssh-copy-id, but doesn't that require me to be able to SSH into the server in the first place? With no access to the desktop workstation, there's no way to access the server in any way!
Your question is not very clear. Anyway:
When you login to a server, you are asked the password of the remote user on that server. This user is usually specified when doing ssh:
ssh remote_user#server
However, it is possible to login without a password or with a passphrase (i.e., a password on the local PC used to encrypt the real ssh password). This is well explained here. In practice, a ssh password is stored on your local computer and used to automatically connect to the remote server. This password is encrypted and can be protected by a passphrase.
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 2 years ago.
Improve this question
I am trying to learn how to use SSH and it's kinda hard for me. I installed PuTTY (windows 7 32-bit). It asked for my IP so I searched 'What is my ip' and pasted it in. Then in the 'command prompt style box' I entered my username 'dell'. Now it's asking for password. I'm really confused because my laptop has no password and there's no password I know of. Can you guys help?
Entering nothing doesn't work:
Putty is just a command line interface, that will allow you to run commands like ssh.
However, if you want to SSH into your machine you have to install an SSH server on your machine.
There are multiple solution on the web:
https://www.howtogeek.com/howto/41560/how-to-get-ssh-command-line-access-to-windows-7-using-cygwin/
122.162.179.255 is likely the IP address of your network router / ADSL modem / etc and not your Windows PC (which won't have an SSH server installed by default).
There really is very little to learn about SSH itself, at least for basic day to day use.
If you want to learn how to use a UNIX-style command prompt then consider installing WSL or setting up a Linux installation on a separate computer (maybe a Raspberry Pi).
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 installed Centos7, all fine, till I want to access via SSH, I get always Access Denied.
I get it with the root user, and another new created user
I tested SSH within the LAN, so no firewall issue
For the root user "PermitRootLogin yes" is set.
SSH service is started
... till now, I have no clue what I ignored to set it right to have it working.
I got a look into the secure log. When I try to login with the root user on the LAN, I do like:
ssh root#192.168.2.11
in log I get: invalid user root#localhost from 192.168.2.108
When I try through VPN-tunnel:
ssh root#192.168.2.11
in log I get: invalid user kristoxxxxxxxx
this is my username on my OSX device. why is this one passed?
This may be due to RSA or DSA keys, os please delete or backup following files from /etc/ssh director to another one.
ssh_host_dsa_key, ssh_host_dsa_key.pub, ssh_host_key, ssh_host_key.pub, ssh_host_rsa_key , ssh_host_rsa_key.pub etc
Now restart your sshd service
service sshd restart
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 8 years ago.
Improve this question
I'm trying to set up an sftp on a networked server. I can access the machine through the outside world by first ssh'ing into a network login server through the following process:
ssh [network-username]#login.server.co.uk
then, once logged in
ssh [server-username]#[hostname]
Is there anyway to sftp into the networked server? I cant find a way to add the initial step into the login process.
Thanks!
You have not specified what SFTP client you are using.
In general, some SFTP clients DO allow SSH tunneling.
WinSCP for instance.
See Connect to FTP/SFTP server which can be accessed via another server only.
OpenSSH suite allows that too.
For example see Forward SSH traffic through a middle machine.
(I'm the author of WinSCP)
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 8 years ago.
Improve this question
I am trying to log in to my computer at work through cyberduck.
I can ssh into the computer just fine but I must first SSH into the central system, then ssh from there into my computer.
Is there a way to allow Cyberduck to ssh into my work computer, i.e. ssh twice at once?
You can use e.g. PuTTY to set up the port forwarding, also called an SSH tunneling (for purposes such as yours).
See https://the.earth.li/~sgtatham/putty/latest/htmldoc/Chapter3.html#using-port-forwarding
Alternatively you can use an SFTP client that supports this natively, e.g. WinSCP.
There's a guide for this here:
https://winscp.net/eng/docs/guide_tunnel
Note that aside from instructions, how to do this using WinSCP native tunneling functionality (section Section up tunnel in WinSCP), the guide also shows, how to tunnel WinSCP via PuTTY (section Section up tunnel using PuTTY for SFTP/SCP session). So if you insist on using Cyberduck, you can just replace WinSCP with Cyberduck in the guide.
(I'm the author of WinSCP)
Yes, you can configure local port forwarding. With it, localhost's socket will be forwarded to your work computer so middle SSH server will work as proxy.
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 11 years ago.
Improve this question
I have a VPS server and a client is asking for SSH access on their hosting account.
I can allow this through the user setup for that particular account but will they be able to admin the entire server then?
I am worried their developer might start installing modules and break my other clients' sites.
Does your VPS come with any control panel ? If so, its usually safe to allow SSH access. However, here is what I would do.
Find out why the client wants SSH access. This is not a conclusive method but would give you a chance to provide alternative solutions if you are uncomfortable enabling SSH access. Note that a lot of hosting service providers, small and large, do not allow SSH access (atleast not without making it so hard that the casual client refrains from asking).
For your mental comfort, create a SSH account for yourself and login with SSH access. Try to see what you can do beyond that specific account. If your test SSH access does not allow you any access beyond that test account, you know that the other guy cant do much either.
you can allow your client to access SSH. It will not create any problem for othersites which is in the same server. As you are giving them only the user account they can not execute root commands. However if the client want to install any modules they need the root authentication.