I am running Jupyter notebook in a remote server. Once I am inside of the remote server I need to run '!ssh namemachine' to enter in the computer with GPU. This command ask me for a password, so, my problem is that I cannot enter any password since Jupyter does not allow me to do it.
I have try with yes command, and !ssh namemachine -password. I have been looking for days and I am not able to figure out how to enter the password.
I really appreciate any kind of help! :)
Related
I need to run a Jupyter notebook 24/7 on a virtual environment. I've never done this before, and as a finance student I barely heard of this.
I have the putty connection, then the "something like cmd" opens, and HERE I am... (Really don't know where I am). There is also a virtual environment created (not by me), which has some capacity (like ram, storage, cpu, and stuff).
How do I open the jupyter notebook on the virtual environment?
Is there a way to do this or should I just delete all of this and run task scheduler?
PuTTY allows you to SSH to a server.
From this server's terminal session, you would need to run jupyter server (or jupyter lab). This would start the Jupyter Server/Lab web server on its default port. Read the documentation on running (and securing) a public server.
Using the same hostname/IP that you used in PuTTY, copy it, and open http://<that address>:<jupyter port> in a browser window, and you should be presented with a Jupyter login page where you'd need to copy a token that is generated when Jupyter is started (assuming you've not configured any other authentication methods).
To get Python code to run constantly, it would be recommended to just use cron with a regular Python script, and not use a notebook file. Otherwise, you'd probably want to look at another CLI tool called papermill, along with cron
Today, I just setup a new VM, from here.
https://www.vmware.com/go/downloadplayer
So, I set it up and everything seems to be working fine. I can definitely login with my password, but I can't copy/paste anything from my laptop to the new VM. I tried to run this code: 'sudo apt-get install open-vm-tools'. That, supposedly will allow me to copy/paste. However, when I enter that, I'm prompted for my password on the VM. I enter it, and get a message that it's not correct. I've done this 3x; the password is definitely correct, or I couldn't even login to the VM. Can someone tell me what's going on? All I want to do is copy/paste. That's it. Thanks.
You have to enable Copy and Paste in VMWare settings, e.g. like that.
Been toying around with my Raspberry Pi running raspbian.
I'd like to update a webpage with a shell script that requires no input, such as password.
I just tried creating the keys and putting them in the .ssh file on the remote server, but when I run my simple shell script of ssh user#domain.net 'ls' and it still prompts me for a password.
I also looked into paramiko slightly, but didn't get very far with it.
All I need is to update/replace an html file with text/information that I have.
Thanks
I think your Public/Private Keys for Authentication is not configured correctly in your server.
Can you check this link which explains the authentication step:SSH Authentication
I need to copy a file from a remote machine to my local machine and I need to automate it.
I've tried SCP command and it's working, however, I could not automate the part wherein it is asking for the password of the user of the local machine and the remote machine.
Based on this article I can Perform SSH Login Without Password Using ssh-keygen & ssh-copy-id
after following all the instructions written there, I tried to access the remote machine using this
ssh lalala#XXX.XXX.XXX.XXX
it works, it doesnt ask for the password anymore. But when I tried copying a file from that machine using the command below,
scp lalala#XXX.XXX.XXX.XXX:'/a/b/c.txt' lelele#XXX.XXX.XXX.YYY:'/b/c/'
it still asks for the password of the localmachine which is the lelele#XXX.XXX.XXX.YYY
I wonder if I did something wrong? what could it be? is there something wrong with the format of the command?
BTW, im using Centos, and I'm planning to code it using python
If you are copying to your local machine why don't you just do
scp lalala#XXX.XXX.XXX.XXX:'/a/b/c.txt' /b/c/
?
I tried your line on some machine with similar setup and didn't get asked for password; I got an error instead, but this is probably due to differences in our configurations. I tried mine and it worked.
Regarding whether your connection succeeds in the remote machine you could tail this file there:
tail -f /var/log/secure
If you see no error there you can be sure (well, never say always) your layout with the generated keys is working.
In this case I bet you'll see no error there
I think you may have multiple ssh keys and set identies only as yes. If so, please check this answer: https://askubuntu.com/a/999306/398861
I've followed a couple of tutorials for creating an Amazon EC2 instance using the command line tools
http://www.zabada.com/tutorials/deploying-a-rails-application-to-production-on-amazon-ec2.php
http://www.smartfrog.org/wiki/display/sf/Starting+an+EC2+Image+by+Hand
and all is well, i
ec2-add-keypair (directing the output of ec2-add-keypair directly to a file in ~/.ssh)
chmod 600 the keypair
ec2-run-instance
ec2-describe-instances
then, when the new instance is running try to ssh on
ssh -i ~/.ssh/ec2-keypair ec2-user#foo.bar.amazon.com
At this point i'm ALWAYS prompted for a password. Obviously there's no password so it always refuses me access.
My question is, what am i doing wrong here? Why am i being prompted for a password and how can i put this right so i can ssh onto the machine i've just started?
I'm guessing this is something to do with my local setup, but as far as i know this machine hasn't had anything custom done with .ssh (there's certainly no config file or anything like that lying around that might be screwing with things).
Anyone have any ideas or suggestions?
ec2-user# ? Why not root# ?